MCPcopy Index your code
hub / github.com/numpy/numpy / soften_mask

Method soften_mask

numpy/ma/core.py:3638–3654  ·  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

3636 return self
3637
3638 def soften_mask(self):
3639 """
3640 Force the mask to soft (default), allowing unmasking by assignment.
3641
3642 Whether the mask of a masked array is hard or soft is determined by
3643 its `~ma.MaskedArray.hardmask` property. `soften_mask` sets
3644 `~ma.MaskedArray.hardmask` to ``False`` (and returns the modified
3645 self).
3646
3647 See Also
3648 --------
3649 ma.MaskedArray.hardmask
3650 ma.MaskedArray.harden_mask
3651
3652 """
3653 self._hardmask = False
3654 return self
3655
3656 @property
3657 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