def Convert2BoolCoordNum(text):
    """converts text to python type in order
       None, Boolean, Int, Float, Complex
       ValueError if can't
    """
    #convert to None if possible
    if text.lower() == 'none':
        return None

    #convert to boolean if possible
    if text.lower() in ['true', 'yes']:
        return (True)
    if text.lower() in ['false', 'no']:
        return (False)

    try:
        return (Convert2CoordNum(text))
    except __HOLE__:
        raise ValueError("Expected PathBoolCoordNum got '{0}'".format(text))

    return None
dataset/ETHPy150Open ioflo/ioflo/ioflo/base/building.py/Convert2BoolCoordNum