Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NumPy 2 compatibility #340

Closed
tovrstra opened this issue Jun 17, 2024 · 0 comments · Fixed by #341
Closed

NumPy 2 compatibility #340

tovrstra opened this issue Jun 17, 2024 · 0 comments · Fixed by #341
Assignees

Comments

@tovrstra
Copy link
Member

IOData (or some of its unit tests) are not compatible with NumPy 2.0, which was released recently. Some tests fail, as can be seen in #339

At first sight, all test failures are due to the same problem:

>       return np.array(array, copy=False, dtype=dtype)
E       ValueError: Unable to avoid copy while creating an array as requested.
E       If using `np.array(obj, copy=False)` replace it with `np.asarray(obj)` to allow a copy when needed (no behavior change in NumPy 1.x).
E       For more details, see https://numpy.org/devdocs/numpy_2_0_migration_guide.html#adapting-to-changes-in-the-copy-keyword.

This should be easy to fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant