Indexing structured masked arrays with multidimensional fields; what with fill_value?
Hello,
usually, a masked array's .fill_value attribute has ndim=0 and the
same dtype as the data attribute:
In [27]: ar = array((0, [[0.0, 0.0, 0.0], [0.0, 0.0, 0.0]], 0.0),
dtype="int, (2,3)float, float")
In [28]: arm = ma.masked_array(ar)
In [29]: arm.fill_value.ndim
Out[29]: 0
In [31]: arm.fill_value.dtype
Out[31]: dtype([('f0', '
participants (1)
-
Gerrit Holl