def check_negative(value):
    e = argparse.ArgumentTypeError('{} is an invalid non-negative float value'.format(value))
    try:
        fvalue = float(value)
    except __HOLE__:
        raise e
    if fvalue < 0:
        raise e
    return fvalue
dataset/ETHPy150Open evfredericksen/pynacea/pynhost/pynhost/utilities.py/check_negative