masked arrays do not roundtrip with all false masks
braingram opened this issue · comments
Brett Graham commented
Description of the problem
Attempting to save a masked array with an all false mask results in no errors. Yet when loaded the array is no longer masked.
See:
asdf/asdf/_core/_converters/ndarray.py
Lines 121 to 125 in 4a0064a
I believe that removing np.any(data.mask)
would fix the issue.
Example of the problem
System information
asdf version: main
python version: python 3.10
operating system: mac