sddb.contract.validate_dataset#

sddb.contract.validate_dataset(group: Group, *, sample: int = 2000, seed: int = 0) → list[str]#

Check one dataset of a collection against the contract.

Parameters:
group

The dataset's group, collection["dataset_<i>"], as written by spatialbatch.write_collection_dataset().

sample

Number of cells (at most all of them) drawn for the checks that read pixels or counts per cell.

seed

Seed of the draw, so that a rerun checks the same cells.

Returns:

The issues found; an empty list means the dataset conforms. Malformed input is reported as an issue, not raised.