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.location
[(0, 5), (2, 9)]
>>> p.indices
(slice(0, 5), slice(2, 9))
>>> p.location
[()]
>>> p.indices
()

Previous topic

cf.Partition.in_memory

Next topic

cf.Partition.isscalar

This Page