[Numpy-discussion] Masked arrays and pickle/unpickle

Pierre GM pgmdevlist@gmail....
Thu Jul 17 12:38:07 CDT 2008

On Thursday 17 July 2008 12:54:10 Stéfan van der Walt wrote:
> 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. 

Wow, I'll see what I can do, but no promises.

> Otherwise, you can already 
> save the array and mask separately.

An other possibility is to store the MaskedArray as a record array, with one 
field for the data and one field for the mask. 

More information about the Numpy-discussion mailing list