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

bug: np.alltrue will be deprecated in numpy 2.0 #2086

Closed
mnfienen opened this issue Feb 2, 2024 · 1 comment
Closed

bug: np.alltrue will be deprecated in numpy 2.0 #2086

mnfienen opened this issue Feb 2, 2024 · 1 comment
Labels

Comments

@mnfienen
Copy link
Contributor

mnfienen commented Feb 2, 2024

Describe the bug
flopy.plot.PlotMapView.contour_array is using np.alltrue at line 287 which will be deprecated in numpy 2.0

To Reproduce
Steps to reproduce the behavior:
Run the plotting functions at the end of this notebook
https://github.com/DOI-USGS/python-for-hydrology/blob/main/notebooks/part1_flopy/solutions/06-Project-voronoi.ipynb

Expected behavior
No deprecation warning

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: OSX
@wpbonelli
Copy link
Member

Looks like we got all these

$ grep -R np.alltrue --exclude-dir=.git
.docs/md/version_changes.md:* [fix(numpy 2.0 deprecation)](https://github.com/modflowpy/flopy/commit/ad35b8dda86959f8cdf4560934ab5f309dc28d56): Replace np.alltrue with np.all (#2088). Committed by mnfienen on 2024-02-04.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants