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

Add support of numpy2.0 #178

Merged
merged 7 commits into from
Oct 17, 2024
Merged

Add support of numpy2.0 #178

merged 7 commits into from
Oct 17, 2024

Conversation

ManonMarchand
Copy link
Member

@ManonMarchand ManonMarchand commented Oct 15, 2024

Bumping pyo3 and rust-numpy to v0.22 to add support for python 3.13 and numpy 2.0

(Edit: support for python 3.13 cannot be provided, as pyerfa does not build on linux. They are working on it, there is just no new version out yet.)

Tested with numpy<2 and numpy>2 locally. The only differences for the users are the output of some displayed numbers.
Ex depths now appear as numpy.uint8(0) instead of 0. Otherwise, totally transparent.

On the rust side: in pyo3, the implicit signatures of pyfunctions are now deprecated in case they have a parameter with Option<>.

@ManonMarchand ManonMarchand linked an issue Oct 15, 2024 that may be closed by this pull request
@ManonMarchand ManonMarchand changed the title Add python3.13 and numpy2.0 Add support of numpy2.0 Oct 15, 2024
@ManonMarchand
Copy link
Member Author

todo: wait for cdshealpix-python v0.7.0 to be properly released

…odifications for to_vec_raw deprecated in ndarray
@ManonMarchand ManonMarchand merged commit 744a8fc into master Oct 17, 2024
14 checks passed
@ManonMarchand ManonMarchand deleted the maint-numpy2 branch October 17, 2024 13:31
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.

Support of numpy 2.0
1 participant