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

fix(numpy): remove np.float_ and np.complex_ for compatibility with numpy 2.0 #28

Merged
merged 2 commits into from
Jul 2, 2024

Conversation

kmarchais
Copy link
Contributor

This PR removes np.float_ and np.complex_ that have been removed in numpy 2.0 (see NumPy release notes).

  • np.float64 must be used instead of np.float_
  • np.complex128 must be used instead of np.complex_

@jourdain
Copy link
Collaborator

jourdain commented Jul 2, 2024

Does the change works on old numpy too?

@kmarchais
Copy link
Contributor Author

I have added a check on the numpy's version to make sure it is still working with old numpy versions.

@jourdain jourdain merged commit b45403b into Kitware:master Jul 2, 2024
3 checks passed
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 this pull request may close these issues.

2 participants