Skip to content

Commit

Permalink
Merge pull request #1769 from braingram/masked_array
Browse files Browse the repository at this point in the history
fix masked array class path for numpy 2.0
  • Loading branch information
braingram authored Mar 11, 2024
2 parents bfd7a68 + 926591d commit aedf156
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
3.2.0 (unreleased)
------------------

- Fix ``numpy.ma.MaskedArray`` saving for numpy 2.x [#1769]

3.1.0 (2024-02-27)
------------------

Expand Down
1 change: 1 addition & 0 deletions asdf/_core/_converters/ndarray.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ class NDArrayConverter(Converter):
]
types = [
np.ndarray, # we use the type here so the extension can find the sub-classes
"numpy.ma.MaskedArray", # in numpy 2.0
"numpy.ma.core.MaskedArray",
"asdf.tags.core.ndarray.NDArrayType",
"asdf.tags.core.stream.Stream",
Expand Down

0 comments on commit aedf156

Please sign in to comment.