pyvale.validation.validio module¶
Save and load validation records as NumPy archives.
- save_valid_case(path, valid_case)[source]¶
Save prepared samples, axes, observables and optional sample inputs.
- Parameters:
path (
strorPath) – Path to the NPZ archive.valid_case (
ValidCase) – Aligned simulation and experiment observations with their named axes.
- load_valid_case(path)[source]¶
Load the prepared case, including the samples needed for ECDF plots.
- Parameters:
path (
strorPath) – Path to the NPZ archive.- Returns:
ValidCase– Case with observable metadata, named observation arrays and optional provenance restored.
- save_valid_result(path, result)[source]¶
Save metric fields, observable metadata and built-in metric settings.
- Parameters:
path (
strorPath) – Path to the NPZ archive.result (
ValidResult) – Validation results containing the requested observable and metric.
- load_valid_result(path)[source]¶
Load previously calculated metric fields without running validation again.
- Parameters:
path (
strorPath) – Path to the NPZ archive.- Returns:
ValidResult– Metric fields, named result axes and available built-in metric settings.