This is a pre-release version (latest). Go to latest (2.4.4)
{ } Raw JSON

bundles / numpy latest / numpy / ma / core / harden_mask

function

numpy.ma.core:harden_mask

source: build-install/usr/lib/python3.14/site-packages/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