-
Notifications
You must be signed in to change notification settings - Fork 46
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 NumPy 2 compatibilty #341
Conversation
Reviewer's Guide by SourceryThis pull request addresses compatibility issues with NumPy 2 by modifying the array conversion method in the iodata/attrutils.py file. Specifically, it replaces the use of np.array with np.asarray to ensure proper handling of array conversions. Tips
|
Here's the code health analysis summary for commits Analysis Summary
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @tovrstra - I've reviewed your changes and they look great!
Here's what I looked at during the review
- 🟡 General issues: 1 issue found
- 🟢 Security: all looks good
- 🟢 Testing: all looks good
- 🟢 Complexity: all looks good
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment to tell me if it was helpful.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Thanks for checking! |
I've release v1.0.0a4 to make pip install work with NumPy 2. See https://pypi.org/p/qc-iodata |
Fixes #340
The fix is just a small technical detail related to array conversion, nothing shocking...
Summary by Sourcery
This pull request addresses a compatibility issue with NumPy 2 by updating the array conversion method in the iodata/attrutils.py file.