check_positive_value

lsst.ts.mthexapod.check_positive_value(value: float, name: str, max_value: float, ExceptionClass: ~typing.Callable[[str], Exception] = <class 'ValueError'>) None

Check that a numeric value is in range 0 < value <= max_value.

Parameters:
valuefloat

Value to check.

namestr

Name of value.

max_valuefloat

Maximum allowed value of the named field (inclusive).

ExceptionClass

Class of exception to raise on error.