Return the internal state of the masked array, for pickling purposes.
(self)
| 6282 | |
| 6283 | # Pickling |
| 6284 | def __getstate__(self): |
| 6285 | """Return the internal state of the masked array, for pickling |
| 6286 | purposes. |
| 6287 | |
| 6288 | """ |
| 6289 | cf = 'CF'[self.flags.fnc] |
| 6290 | data_state = super().__reduce__()[2] |
| 6291 | return data_state + (getmaskarray(self).tobytes(cf), self._fill_value) |
| 6292 | |
| 6293 | def __setstate__(self, state): |
| 6294 | """Restore the internal state of the masked array, for |