def Convert2BoolCoordNum(text):
    #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 ValueError:
        raise ValueError("Expected PathBoolCoordNum got '{0}'".format(text))

    return None
Adds a new contribution to a project
dataset/ETHPy150Open ioflo/ioflo/ioflo/base/building.py/Convert2BoolCoordNum--crossover with--dataset/ETHPy150Open ExCiteS/geokey/geokey/contributions/views/observations.py/ProjectObservations.post