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 copy keywords for numpy 2 compatibility #30

Merged
merged 2 commits into from
Jun 26, 2024
Merged

fix copy keywords for numpy 2 compatibility #30

merged 2 commits into from
Jun 26, 2024

Conversation

aelanman
Copy link
Owner

@aelanman aelanman commented Jun 23, 2024

The main incompatibility with numpy 2.0 is in how it handles "copy=False" in array creation. This applies the same fix that astropy uses to ensure coompatibility with both numpy 2.0 and 1.**.

I'm not seeing any other errors from numpy 2.0, and all tests are passing, so I think this is sufficient.

closes #29

@aelanman aelanman requested a review from bhazelton June 23, 2024 18:50
Copy link

codecov bot commented Jun 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.75%. Comparing base (4be9e04) to head (0c71dd3).
Report is 17 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #30      +/-   ##
==========================================
+ Coverage   86.64%   86.75%   +0.10%     
==========================================
  Files           7        8       +1     
  Lines         584      619      +35     
==========================================
+ Hits          506      537      +31     
- Misses         78       82       +4     

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

Copy link
Collaborator

@bhazelton bhazelton left a comment

Choose a reason for hiding this comment

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

Looks great, thank you!!

@aelanman aelanman merged commit 93019d0 into main Jun 26, 2024
12 checks passed
@aelanman aelanman deleted the numpy2_compat branch June 26, 2024 13:16
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.

Errors with numpy v2.0
2 participants