Validation¶
Five-level conformance validator for ZVF stores. See Validation overview for a full description of each level.
Unified validation — runs levels 1–5 cumulatively.
- zarr_vectors.validate.validate(store_path, *, level=3)[source]¶
Validate a zarr vectors store at the specified conformance level (1–5).
- Parameters:
- Return type:
ValidationResult¶
- class zarr_vectors.validate.ValidationResult(level, passed=<factory>, warnings=<factory>, errors=<factory>)[source]¶
Bases:
objectAccumulated validation outcome.
- __init__(level, passed=<factory>, warnings=<factory>, errors=<factory>)¶
- merge(other)[source]¶
- Parameters:
other (ValidationResult)
- Return type:
None
Check¶
Individual validation modules¶
Level 1 structural validation — verify the store layout on disk.
- class zarr_vectors.validate.structure.ValidationResult(level, passed=<factory>, warnings=<factory>, errors=<factory>)[source]¶
Bases:
objectAccumulated validation outcome.
- __init__(level, passed=<factory>, warnings=<factory>, errors=<factory>)¶
- merge(other)[source]¶
- Parameters:
other (ValidationResult)
- Return type:
None
- zarr_vectors.validate.structure.validate_structure(store_path)[source]¶
Level 1: verify store directory layout.
- Parameters:
- Return type:
Level 2 metadata validation — verify metadata is well-formed.
- zarr_vectors.validate.metadata.validate_metadata(store_path)[source]¶
Level 2: verify all metadata is well-formed.
- Parameters:
- Return type:
Level 3 consistency validation — verify data arrays are internally consistent.