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+ compatibility #254

Merged
merged 3 commits into from
Oct 25, 2024
Merged

NumPy 2.0+ compatibility #254

merged 3 commits into from
Oct 25, 2024

Conversation

lowderchris
Copy link
Contributor

@lowderchris lowderchris commented Oct 22, 2024

PR summary

Makes code / test changes for compatibility with numpy 2.0+

Todos

  • Confirm IO changes do not alter data in an unintended way

@lowderchris lowderchris requested a review from jmbhughes October 22, 2024 22:50
@lowderchris lowderchris self-assigned this Oct 22, 2024
Copy link

codecov bot commented Oct 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.26%. Comparing base (85737be) to head (d6ceae8).
Report is 12 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #254   +/-   ##
=======================================
  Coverage   90.26%   90.26%           
=======================================
  Files          44       44           
  Lines        2907     2907           
=======================================
  Hits         2624     2624           
  Misses        283      283           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@jmbhughes jmbhughes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I love seeing more CI passing!

One note, it's probably best to use something like np.isposinf instead of checking for equality to np.inf. I'm not sure if it's well defined to just use == for that. My instinct says no.

@jmbhughes
Copy link
Member

Also, the 3.13 CI taking forever to get dependencies may be because regularizepsf or some other dependency that needs compilation doesn't have a wheel yet for that Python version.

Copy link
Member

@jmbhughes jmbhughes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great! Thanks for fixing this.

@jmbhughes jmbhughes merged commit 29c3236 into main Oct 25, 2024
5 of 6 checks passed
@jmbhughes jmbhughes deleted the fix-numpy2 branch October 25, 2024 20:17
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