valpas.utils.checker.check_cutoff_range#
- valpas.utils.checker.check_cutoff_range(x)#
Checks if the supplied value is in a certain float range.
- Parameters:
x (Any) – The supplied value that should be checked whether it falls in a predefined float range.
- Returns:
Returns the value cast to float.
- Return type:
float
- Raises:
argparse.ArgumentTypeError – If
xcan not be cast to float or is not with in the defined float range.