cf.Partition.indices

Partition.indices

The indices of the master array which correspond to this partition’s data array.

Returns :
out : tuple

A tuple of slice objects or, if the master data array is a scalar array, an empty tuple.

Examples

>>> p.subarray.shape
(5, 7)
>>> p.indices
(slice(0, 5), slice(2, 9))

Previous topic

cf.Partition.in_memory

Next topic

cf.Partition.isscalar

This Page