check_position

lsst.ts.mthexapod.check_position(position: ~lsst.ts.mthexapod.base.Position, limits: ~lsst.ts.mthexapod.base.PositionLimits, ExceptionClass: ~typing.Callable[[str], Exception] = <class 'ValueError'>) None

Raise ExceptionClass if a position is not within limits.

Parameters:
positionPosition

Position to check.

limitsPositionLimits

Position limits.

ExceptionClassException, optional

Exception class to raise.