-
Notifications
You must be signed in to change notification settings - Fork 7
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
update dtype aliases in imageio #51
Comments
Thanks @rdenham |
@rdenham Just FYI, python-fmask had similar problems, so there is now a new version 0.5.8 of that, too. |
thanks. Closed by #52 |
Also a tuiview 1.2.11 with a fix FWIW. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For numpy 1.24.0, the deprecation for the aliases np.object, np.bool, np.float, np.complex, np.str, and np.int expired (introduces NumPy 1.20).
This means that in recent versions of numpy you'll get errors like:
Perhaps the authors could update the mapping in
imageio.py
to look like:So that the original alias
numpy.bool
becomesnumpy.bool_
. Same fornumpy.float
. I thinkbool
andfloat
would also work.Probably there are other ways too, but this approach seems to be the one with minimal effort and should not change the behaviour of the existing code.
The text was updated successfully, but these errors were encountered: