cf.Partition.isscalar

Partition.isscalar

True if and only if the partition’s data array and sub-array are both a scalar arrays.

Examples

>>> p.subarray.ndim
0
>>> p.isscalar
True
>>> p.subarray.ndim
1
>>> p.isscalar
False

Previous topic

cf.Partition.indices

Next topic

cf.Partition.on_disk

This Page