check_range

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

Check that a numeric value is range min_value <= value <= max_value.

Parameters:
valuefloat

Value to check.

namestr

Name of value.

min_valuefloat

Minimum allowed value of the named field (inclusive).

max_valuefloat

Maximum allowed value of the named field (inclusive).

ExceptionClass

Class of exception to raise on error.