check_symmetrical_range

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

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

Parameters
valuefloat

Value to check.

namestr

Name of value.

namestr

Name of data field to check.

max_valuefloat

Maximum allowed value of the named field (inclusive).

ExceptionClass

Class of exception to raise on error.