rizer.misc.check_utils#
Functions#
Check if the value is a positive, finite, number. |
|
|
Check if the required keys are present in the dictionary. |
Module Contents#
- rizer.misc.check_utils.validate_positive(name: str, value: int, allow_zero: bool = False) int#
- rizer.misc.check_utils.validate_positive(name: str, value: float, allow_zero: bool = False) float
- rizer.misc.check_utils.validate_positive(name: str, value: numpy.integer, allow_zero: bool = False) numpy.integer
- rizer.misc.check_utils.validate_positive(name: str, value: numpy.floating, allow_zero: bool = False) numpy.floating
- rizer.misc.check_utils.validate_positive(name: str, value, allow_zero: bool = False) int | float
Check if the value is a positive, finite, number.
- Parameters:
- Raises:
TypeError – Raised if the value is not a number.
ValueError – Raised if the value is not finite.
ValueError – Raised if the value is not positive.