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

RFC: replace vendored version of numpy.trapz with supported API in numpy 2 #4806

Merged

Conversation

neutrinoceros
Copy link
Member

@neutrinoceros neutrinoceros commented Feb 5, 2024

PR Summary

Follow up to #4632

xref numpy/numpy#25738

This can be considered a bugfix since the previous solution (shipped in yt 4.3.0) erroneously circumvents NEP 18 implementations in unyt.

@neutrinoceros neutrinoceros added this to the 4.3.1 milestone Feb 5, 2024
@neutrinoceros neutrinoceros added bug refactor improve readability, maintainability, modularity labels Feb 5, 2024
@neutrinoceros
Copy link
Member Author

@yt-fido test this please

@neutrinoceros neutrinoceros marked this pull request as ready for review February 5, 2024 07:54
@neutrinoceros
Copy link
Member Author

This is actually more than just a cleanup, as the numpy.core namespace has been moved to numpy._core and shouldn't be used externally, which this PR partially fixes.

@neutrinoceros
Copy link
Member Author

rebasing to refresh CI. This is blocking to validate other numpy-dev fixes. Can I ask for a quick review @matthewturk ?

@neutrinoceros
Copy link
Member Author

@yt-fido test this please

Copy link
Member

@matthewturk matthewturk left a comment

Choose a reason for hiding this comment

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

Looks like a good fix.

@matthewturk matthewturk merged commit f60342a into yt-project:main Feb 25, 2024
13 checks passed
meeseeksmachine pushed a commit to meeseeksmachine/yt that referenced this pull request Feb 25, 2024
@neutrinoceros neutrinoceros deleted the numpy2/trapezoid_renaming branch February 25, 2024 12:33
neutrinoceros added a commit that referenced this pull request Feb 25, 2024
…6-on-yt-4.3.x

Backport PR #4806 on branch yt-4.3.x (RFC: replace vendored version of numpy.trapz with supported API in numpy 2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug refactor improve readability, maintainability, modularity
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants