Skip to content

Commit

Permalink
Fix for numpy-2.0 (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrogowski authored Jun 23, 2024
1 parent 7296c1f commit bf5def5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shmem4py/shmem.py
Original file line number Diff line number Diff line change
Expand Up @@ -883,7 +883,7 @@ def array(
Valid hints are defined as enumerations in `MALLOC` and can be
combined using the bitwise OR operator. Keyword argument only.
"""
tmp = np.array(obj, dtype, copy=False, order=order)
tmp = np.asarray(obj, dtype, order=order)
a = new_array(tmp.size, tmp.dtype, align=align, hints=hints, clear=False)
a.shape = tmp.shape
if tmp.ndim > 1:
Expand Down

0 comments on commit bf5def5

Please sign in to comment.