embedded/web/flask/read.py
def str_to_val(field):
    '''
    Automatically detects floats, ints and bools

    Returns a float, int or bool
    '''
    if 'nan' in field:
        return float("NAN")
    elif '.' in field:
        return float(field)
    elif field == 'true':
        return True
    elif field == 'false':
        return False
    else:
        return int(field)

    Automatically detects floats, ints and bools

    Returns a float, int or bool
    
Automatically detects floats, ints and bools
Returns a float, int or bool
Automatically detects floats ints and bools Returns a float int or bool
def str_to_val(field):
    if 'nan' in field:
        return float("NAN")
    elif '.' in field:
        return float(field)
    elif field == 'true':
        return True
    elif field == 'false':
        return False
    else:
        return int(field)
def str_to_val ( field ) : if 'nan' in field : return float ( "NAN" ) elif '.' in field : return float ( field ) elif field == 'true' : return True elif field == 'false' : return False else : return int ( field )
Automatically detects floats, ints and bools
Returns a float, int or bool
Automatically detects floats ints and bools Returns a float int or bool
'''
    Automatically detects floats, ints and bools

    Returns a float, int or bool
    '''
field