ASDF (Advanced Scientific Data Format) is a next generation interchange format for scientific data
BSD 3-Clause "New" or "Revised" License
523
stars
57
forks
source link
fix masked array class path for numpy 2.0 #1769
Closed
braingram closed 6 months ago
Numpy 2.0 moved the internal path for
np.ma.MaskedArray
. See: https://github.com/numpy/numpy/commit/7b9dede257171bdfafdd4a6fa43ac4df806b1103This causes masked arrays to be saved as standard numpy arrays with a warning. See: https://github.com/astropy/asdf-astropy/actions/runs/8222457553/job/22484029609?pr=219#step:10:291
This PR updates the converter to be aware of the new path.
I believe https://github.com/asdf-format/asdf/pull/1654 would have prevented this failure (by allowing for the public class path).
Description
Checklist: