bundles / numpy 2.4.3 / numpy / ma / core / harden_mask
function
numpy.ma.core:harden_mask
source: /numpy/ma/core.py :7063
Signature
def harden_mask ( self ) Summary
Force the mask to hard, preventing unmasking by assignment.
Extended Summary
Whether the mask of a masked array is hard or soft is determined by its ~ma.MaskedArray.hardmask property. harden_mask sets ~ma.MaskedArray.hardmask to True (and returns the modified self).
See also
- ma.MaskedArray.hardmask
- ma.MaskedArray.soften_mask
Aliases
-
numpy.ma.harden_mask