checks_active#
- t3toolbox.safety.checks_active(*inputs)#
def checks_active(*inputs):
True iff numerical precondition checks should run here: safe mode AND not under a jax trace.
Pass the operand arrays/trees so tracing is detected; a check site computes its (possibly expensive) numerical condition only when this returns True:
if safety.checks_active(frame.data): safety.require(frame.is_orthogonal(atol=safety.effective_rtol(frame.data)).all(), 'frame not orthogonal')