MCPcopy Create free account
hub / github.com/numpy/numpy / soften_mask

Method soften_mask

numpy/ma/core.py:3571–3587  ·  view source on GitHub ↗

Force the mask to soft (default), allowing unmasking by assignment. 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)

Source from the content-addressed store, hash-verified

3569 return self
3570
3571 def soften_mask(self):
3572 """
3573 Force the mask to soft (default), allowing unmasking by assignment.
3574
3575 Whether the mask of a masked array is hard or soft is determined by
3576 its `~ma.MaskedArray.hardmask` property. `soften_mask` sets
3577 `~ma.MaskedArray.hardmask` to ``False`` (and returns the modified
3578 self).
3579
3580 See Also
3581 --------
3582 ma.MaskedArray.hardmask
3583 ma.MaskedArray.harden_mask
3584
3585 """
3586 self._hardmask = False
3587 return self
3588
3589 @property
3590 def hardmask(self):

Callers 3

test_hardmaskMethod · 0.45
test_hardmaskMethod · 0.45

Calls

no outgoing calls

Tested by 3

test_hardmaskMethod · 0.36
test_hardmaskMethod · 0.36