-
Notifications
You must be signed in to change notification settings - Fork 322
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(binaryfile): avoid numpy deprecation warnings #1868
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #1868 +/- ##
=======================================
Coverage 72.2% 72.2%
=======================================
Files 257 257
Lines 56226 56226
=======================================
Hits 40621 40621
Misses 15605 15605
|
I took a brief look through the repo and the warnings raised by autotests and don't see this anywhere else. Will keep an eye out for more though |
Thanks, I was considering addressing this new warning, you beat me to it! And agree that using Missed one from a different package, however:
|
Thanks @mwtoews I did not realize this
Fixed the one in gridutil |
* use ndarray.item() to retrieve single elements * update gridutil get_disu_kwargs() docstrings
In the future, numpy will stop treating arrays with 1 element and dimension >0 as scalars. Use
.item()
to access the single element.This may need to be fixed elsewhere in the codebase, this is the only place I have seen warnings from recently.