zcollection.partitioning.sequence.Sequence.index_dataset#

Sequence.index_dataset(zds)#

Yield the indexing scheme for the given dataset.

Parameters:

zds (Dataset) – The dataset to be indexed.

Yields:

The indexing scheme for the partitioning scheme.

Raises:

ValueError – if one of the variables needs for the partitioning is not monotonic.

Return type:

Iterator[Tuple[Tuple[Tuple[str, Any], …], slice]]