Skip to content

Commit

Permalink
Fix numpy.ma.fix_invalid issue in NumPy 2.1.0 by replacing with `nu…
Browse files Browse the repository at this point in the history
…mpy.ma.masked_invalid` (#2042)
  • Loading branch information
kounelisagis committed Aug 20, 2024
1 parent ced6ff7 commit cbdc6ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tiledb/libtiledb.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -2705,7 +2705,7 @@ cdef class DenseArrayImpl(Array):
"typed attribute '{}'!".format(name))

if attr.isnullable and name not in nullmaps:
nullmaps[name] = ~np.ma.fix_invalid(val).mask
nullmaps[name] = ~np.ma.masked_invalid(val).mask
val = np.nan_to_num(val)
val = np.ascontiguousarray(val, dtype=attr.dtype)
except Exception as exc:
Expand Down

0 comments on commit cbdc6ed

Please sign in to comment.