Force the mask to hard, preventing unmasking by assignment. 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)
(self)
| 3551 | raise NotImplementedError("Coming soon: setting the mask per records!") |
| 3552 | |
| 3553 | def harden_mask(self): |
| 3554 | """ |
| 3555 | Force the mask to hard, preventing unmasking by assignment. |
| 3556 | |
| 3557 | Whether the mask of a masked array is hard or soft is determined by |
| 3558 | its `~ma.MaskedArray.hardmask` property. `harden_mask` sets |
| 3559 | `~ma.MaskedArray.hardmask` to ``True`` (and returns the modified |
| 3560 | self). |
| 3561 | |
| 3562 | See Also |
| 3563 | -------- |
| 3564 | ma.MaskedArray.hardmask |
| 3565 | ma.MaskedArray.soften_mask |
| 3566 | |
| 3567 | """ |
| 3568 | self._hardmask = True |
| 3569 | return self |
| 3570 | |
| 3571 | def soften_mask(self): |
| 3572 | """ |
no outgoing calls