Package: validity_frame#
validity_frame is a small standalone distribution at validity_frame/, next to
hydromodpy/ and never inside it. It has its own pyproject.toml, version and tests.
The package code is in validity_frame/src/validity_frame/. hydromodpy/ does not
import it, and CI installs it (pip install -e validity_frame) for the tests that use it.
Status#
It is outside the stable public API and has no compatibility guarantee. It depends on no
other framework and expects compatible objects through duck-typing. It must stay isolated from
the modeling layers, and it is not a layer of layer_matrix.yaml.
Parts#
Paths are relative to validity_frame/src/validity_frame/.
validity.py:ValidityFrame, withverify(state, steps), which checks a few generic invariants of a pipeline state. Withtolerant=Trueit returns instead of raising.loader.py:create_validity_frame(name), which loads a frame from thevalidity_frame.framesentry-point group. The package registersdefault, and an external project can register its own.auto_capture/:AutoCaptureCollectorandAutoCaptureSnapshot, which take a snapshot of the execution before a run (capture_start) and after it (capture_end, orcapture_exceptionfor a run that raised), andExecutionContext.probes/: the system, hardware, runtime and solver probes the collector calls.semantic_model/: the knowledge model of a run:ContextModel,ValidityDomain,ExpertAnnotation,ExecutionKnowledgeRecord,ValidationStoreand the loaderload_semantic_model.
See also#
Layered architecture for the matrix contract.
Artifact policy for the storage formats the project treats as canonical.