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 NumPy 2 compatibilty #341

Merged
merged 1 commit into from
Jun 18, 2024
Merged

Fix NumPy 2 compatibilty #341

merged 1 commit into from
Jun 18, 2024

Conversation

tovrstra
Copy link
Member

@tovrstra tovrstra commented Jun 17, 2024

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.

  • Bug Fixes:
    • Fixed compatibility issue with NumPy 2 by replacing np.array with np.asarray for array conversion.

Copy link
Contributor

sourcery-ai bot commented Jun 17, 2024

Reviewer's Guide by Sourcery

This 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
  • Trigger a new Sourcery review by commenting @sourcery-ai review on the pull request.
  • You can change your review settings at any time by accessing your dashboard:
    • Enable or disable the Sourcery-generated pull request summary or reviewer's guide;
    • Change the review language;
  • You can always contact us if you have any questions or feedback.

Copy link

deepsource-io bot commented Jun 17, 2024

Here's the code health analysis summary for commits f4ea3b8..a111616. View details on DeepSource ↗.

Analysis Summary

AnalyzerStatusSummaryLink
DeepSource Shell LogoShell✅ SuccessView Check ↗
DeepSource Python LogoPython✅ SuccessView Check ↗

💡 If you’re a repository administrator, you can configure the quality gates from the settings.

Copy link
Contributor

@sourcery-ai sourcery-ai bot left a 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

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment to tell me if it was helpful.

iodata/attrutils.py Show resolved Hide resolved
@tovrstra tovrstra added this to the 1.0.0 milestone Jun 17, 2024
Copy link
Member

@PaulWAyers PaulWAyers left a comment

Choose a reason for hiding this comment

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

LGTM

@tovrstra
Copy link
Member Author

Thanks for checking!

@tovrstra tovrstra merged commit d4bb73f into theochem:main Jun 18, 2024
12 checks passed
@tovrstra tovrstra deleted the fix-numpy2 branch June 18, 2024 18:08
@tovrstra
Copy link
Member Author

I've release v1.0.0a4 to make pip install work with NumPy 2. See https://pypi.org/p/qc-iodata

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.

NumPy 2 compatibility
2 participants