def _zero_one_validator(x, function):
    message = (function + ' must be a float between zero and one')
    if ((x < 0.0) or (x > 1.0)):
        raise ValueError(message)
    return x
def _zero_one_validator(x, function):
    message = (function + ' must be a float between zero and one')
    if ((x < 0.0) or (x > 1.0)):
        raise ValueError(message)
    return x