Return the internal state of the masked array, for pickling purposes.
(self)
| 6481 | |
| 6482 | # Pickling |
| 6483 | def __getstate__(self): |
| 6484 | """Return the internal state of the masked array, for pickling |
| 6485 | purposes. |
| 6486 | |
| 6487 | """ |
| 6488 | cf = 'CF'[self.flags.fnc] |
| 6489 | data_state = super().__reduce__()[2] |
| 6490 | return data_state + (getmaskarray(self).tobytes(cf), self._fill_value) |
| 6491 | |
| 6492 | def __setstate__(self, state): |
| 6493 | """Restore the internal state of the masked array, for |