sddb.contract.validate#

sddb.contract.validate(path: str | Path, *, sample: int = 2000, seed: int = 0) → list[str]#

Check a collection: every dataset (see validate_dataset()) plus the checks across datasets.

Across datasets, the collection has one image role, the same var index in every dataset, one mpp_target on the target grid, and grids of one kind (target or native) unless every dataset sets allow_mixed_grids.

Returns:

The issues found, each prefixed by its dataset (dataset_<i>:) or by collection:; an empty list means the collection conforms.