cf.CellMeasure.isscalar

CellMeasure.isscalar

True if and only if the data array is a scalar array.

Examples

>>> print f.array
2
>>> f.isscalar
True
>>> print f.array
[2]
>>> f.isscalar
False
>>> print f.array
[[2, 3]]
>>> f.isscalar
False
>>> f._hasData
False
>>> f.isscalar
False

Previous topic

cf.CellMeasure.hardmask

Next topic

cf.CellMeasure.last_datum

This Page