This is a pre-release version (2.5.0.dev0+git20251130.2de293a). Go to latest (2.4.4)
{ } Raw JSON

bundles / numpy 2.5.0.dev0+git20251130.2de293a / numpy / ma / core / soften_mask

function

numpy.ma.core:soften_mask

source: build-install/usr/lib/python3.14/site-packages/numpy/ma/core.py :7063

Signature

def   soften_mask ( self )

Summary

Force the mask to soft (default), allowing unmasking by assignment.

Extended Summary

Whether the mask of a masked array is hard or soft is determined by its ~ma.MaskedArray.hardmask property. soften_mask sets ~ma.MaskedArray.hardmask to False (and returns the modified self).

See also

ma.MaskedArray.harden_mask
ma.MaskedArray.hardmask

Aliases

  • numpy.ma.soften_mask