[Numpy-discussion] Masked arrays and pickle/unpickle
Stéfan van der Walt
stefan at sun.ac.za
Thu Jul 17 12:54:10 EDT 2008
2008/7/17 Anthony Floyd <anthony.floyd at convergent.ca>:
> What I need to know is how I can trick pickle or Numpy to put the old class into the new class.
If you have an example data-file, send it to me off-list and I'll
figure out what to do. Maybe it is as simple as
np.core.ma = np.oldnumeric.ma
> It's extremely surprising to find a significant API change like this in a stable package.
I don't know if renaming things in np.core counts as an API change.
Pickling is notoriously unreliable for storing arrays, which is why
Robert wrote `load` and `save`. I hope that Pierre can get around to
implementing MaskedArray storage for 1.2. Otherwise, you can already
save the array and mask separately.
Regards
Stéfan
More information about the NumPy-Discussion
mailing list