MaskedArray.flags
numpy.ma.MaskedArray.flags
-
MaskedArray.flags
-
Information about the memory layout of the array.
Notes
The
flags
object can be accessed dictionary-like (as ina.flags['WRITEABLE']
), or by using lowercased attribute names (as ina.flags.writeable
). Short flag names are only supported in dictionary access.Only the UPDATEIFCOPY, WRITEABLE, and ALIGNED flags can be changed by the user, via direct assignment to the attribute or dictionary entry, or by calling
ndarray.setflags
.The array flags cannot be set arbitrarily:
- UPDATEIFCOPY can only be set
False
. - ALIGNED can only be set
True
if the data is truly ali
- UPDATEIFCOPY can only be set