check_symmetrical_range

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

Check that a numeric value is in range -max_value <= 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.