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

Replace deprecated np.product with np.prod #24

Merged
merged 1 commit into from
Jul 26, 2024

Conversation

jpdunc23
Copy link
Contributor

In NumPy 1.25.0, np.product was deprecated in favor of np.prod and was removed entirely in NumPy 2.0. This PR substitutes np.product with np.prod, allowing xpartition to work with the latest version of NumPy.

Copy link
Owner

@spencerkclark spencerkclark left a comment

Choose a reason for hiding this comment

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

Thanks @jpdunc23! Indeed I have not tried using xpartition in an environment with NumPy 2.0 yet, so this fix is quite welcome. I'll see if I can cut a new release with this update in the next few days to PyPI.

@spencerkclark spencerkclark merged commit 4e63635 into spencerkclark:main Jul 26, 2024
2 checks passed
@jpdunc23
Copy link
Contributor Author

Thank you, @spencerkclark!

@spencerkclark
Copy link
Owner

The v0.2.2 release is up on PyPI now—thanks again for this.

@jpdunc23
Copy link
Contributor Author

Awesome, thanks for creating the new release so quickly!

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