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.0 fixes:poly1d and NaN #585

Merged
merged 2 commits into from
Oct 13, 2023

Conversation

braingram
Copy link
Contributor

@braingram braingram commented Sep 27, 2023

It appears that development scipy is no longer providing numpy functions via scipy (see scipy/scipy#19067).

With a current scipy (1.11.0) numpy.poly1d is available at scipy.poly1d. poppy currently uses scipy.poly1d. scipy.poly1d no longer exists in scipy main. This PR updates this call to use numpy.poly1d.

Numpy 2.0 also removes NaN. This PR switches uses of NaN to nan.

@codecov
Copy link

codecov bot commented Sep 27, 2023

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Files Coverage Δ
poppy/accel_math.py 43.17% <100.00%> (ø)
poppy/optics.py 81.81% <0.00%> (ø)

📢 Thoughts on this report? Let us know!.

@braingram braingram changed the title use poly1d from numpy directly Numpy 2.0 fixes:poly1d and NaN Sep 27, 2023
@BradleySappington BradleySappington merged commit f373e0d into spacetelescope:develop Oct 13, 2023
8 checks passed
@braingram braingram deleted the poly1d branch October 13, 2023 18:47
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