Skip to content

Commit

Permalink
Merge pull request #341 from tovrstra/fix-numpy2
Browse files Browse the repository at this point in the history
Fix NumPy 2 compatibilty
  • Loading branch information
tovrstra authored Jun 18, 2024
2 parents f4ea3b8 + a111616 commit d4bb73f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iodata/attrutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def convert_array_to(dtype):
def converter(array):
if array is None:
return None
return np.array(array, copy=False, dtype=dtype)
return np.asarray(array, dtype=dtype)

return converter

Expand Down

0 comments on commit d4bb73f

Please sign in to comment.