rizer.adaptive_models.review#
Human-review status of the physics, enforced at run time.
Every physical model, transition operator and the model selector declares a
reviewed_by class attribute. It is None until a physicist has read both
the equations in rizer/adaptive_models/PHYSICS.md and the implementation,
and takes responsibility for them; signing off is a one-line change:
class IsentropicExpansion(BasePhysicalModel):
reviewed_by = "A. Physicist (2026-09-15)"
While it is None, entering that model (or applying that operator) raises an
UnreviewedPhysicsWarning, once per class and per process, so that a run
whose trajectory passed through unvalidated physics says so in its own log
rather than only in the documentation.
Turn the warnings into errors to refuse unreviewed physics outright:
warnings.simplefilter("error", UnreviewedPhysicsWarning)
Exceptions#
Physics used by the run has not been validated by a human. |
Functions#
|
Warn once per class that |
Module Contents#
- exception rizer.adaptive_models.review.UnreviewedPhysicsWarning#
Bases:
UserWarningPhysics used by the run has not been validated by a human.