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 bug with numpy v2.0 #805

Merged
merged 1 commit into from
Jul 15, 2024
Merged

Fix bug with numpy v2.0 #805

merged 1 commit into from
Jul 15, 2024

Conversation

pfebrer
Copy link
Contributor

@pfebrer pfebrer commented Jul 15, 2024

The repr of numpy 0D arrays changed from 0 to np.int64(0) in numpy 2.0, which caused a bug when creating queries for orbital filtering, making tests fail: https://github.com/zerothi/sisl/actions/runs/9922030378/job/27410643845.

Copy link

codecov bot commented Jul 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 87.08%. Comparing base (8e32840) to head (1ce6ab5).

Additional details and impacted files
@@             Coverage Diff             @@
##             main     #805       +/-   ##
===========================================
+ Coverage   66.23%   87.08%   +20.85%     
===========================================
  Files         401      401               
  Lines       51714    51819      +105     
===========================================
+ Hits        34253    45127    +10874     
+ Misses      17461     6692    -10769     

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

@zerothi
Copy link
Owner

zerothi commented Jul 15, 2024

Thanks, I would not have been able to track this down! 🎆

@zerothi zerothi merged commit d03dd07 into zerothi:main Jul 15, 2024
9 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