nirs4all.pipeline.dagml.conformal_store module
Filesystem store for internal conformal calibration results.
- class nirs4all.pipeline.dagml.conformal_store.ConformalStoreManifest(result_fingerprint: str, artifact_fingerprint: str, files: Mapping[str, str], schema_id: str = 'nirs4all.dagml.conformal_store.v1', version: int = 1)[source]
Bases:
objectManifest for a filesystem conformal result store.
- classmethod from_dict(payload: Mapping[str, Any]) ConformalStoreManifest[source]
Parse a conformal store manifest and verify its fingerprint.
- classmethod load_json(path: str | Path) ConformalStoreManifest[source]
Load and verify a conformal store manifest.
- nirs4all.pipeline.dagml.conformal_store.attach_conformal_result_to_bundle(model_bundle_path: str | Path, result: CalibratedRunResult, output_path: str | Path | None = None, *, overwrite: bool = False) Path[source]
Copy a model
.n4abundle and attach a verified conformal sidecar.The source bundle is left unchanged unless the caller explicitly passes the same path as
output_path; in-place attachment is rejected to avoid corrupting ZIP archives during copy. Existing conformal sidecars are refused unlessoverwrite=True.
- nirs4all.pipeline.dagml.conformal_store.export_conformal_result_bundle(result: CalibratedRunResult, path: str | Path, *, overwrite: bool = False) Path[source]
Export a calibrated result store as a zipped
.n4aarchive.
- nirs4all.pipeline.dagml.conformal_store.load_conformal_result_archive(path: str | Path) CalibratedRunResult[source]
Load a conformal sidecar from a conformal-only or full model
.n4aarchive.
- nirs4all.pipeline.dagml.conformal_store.load_conformal_result_bundle(path: str | Path) CalibratedRunResult[source]
Load and verify a zipped conformal result
.n4aarchive.
- nirs4all.pipeline.dagml.conformal_store.load_conformal_result_store(path: str | Path) CalibratedRunResult[source]
Load and verify a filesystem conformal result store.