check_positive_value

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

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

Parameters:
value : float

Value to check.

name : str

Name of value.

max_value : float

Maximum allowed value of the named field (inclusive).

ExceptionClass

Class of exception to raise on error.