cf.AuxiliaryCoordinate.isscalar

AuxiliaryCoordinate.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.AuxiliaryCoordinate.isdimension

Next topic

cf.AuxiliaryCoordinate.mask

This Page