zcollection.partitioning.sequence.Sequence.split_dataset#

Sequence.split_dataset(zds, axis)#

Split the dataset into partitions.

Parameters:
  • zds (Dataset) – The dataset to be split.

  • axis (str) – The axis to be used for the splitting.

Yields:

The partitioning scheme and the indexer to divide the dataset on each partition found.

Raises:

ValueError – if one of the variables needs for the partitioning is not a one-dimensional array.

Return type:

Iterator[tuple[tuple[str, …], dict[str, slice]]]