check_negative_value

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

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

Parameters:
valuefloat

Value to check.

namestr

Name of value.

min_valuefloat

Minimum allowed value of the named field (inclusive).

ExceptionClass

Class of exception to raise on error.