check_range

lsst.ts.mthexapod.check_range(value, name, min_value, max_value, ExceptionClass=<class 'ValueError'>)

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.