-
Notifications
You must be signed in to change notification settings - Fork 40
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
numpy.typeDict
is deprecated
#92
Comments
I will take care of this until March 27 EOD. @otizonaizit @Stewori @nkgevorgyan |
Thank you, Nils. |
Using conda and a clean install of mdp with
|
@finnoshea Do you experience the same problem when you install the mdp version from the master branch: pip install git+https://github.com/mdp-toolkit/mdp-toolkit |
That does appear to work. To recap:
versus
Thanks for the pointer @NiMlr! |
This issue has been fixed in #94, so I am closing it now. |
In
mdp-toolkit/mdp/utils/routines.py
Line 295 in 300d288
we use
np.typeDict
. This is deprecated since forever: numpy/numpy@6689502 and numpy/numpy#17585 . Since numpy release 1.21 this now issues a deprecation warning: numpy/numpy#17586It seems that
scipy
is not importing deprecated names from the numpy namespace anymore, so that with numpy 1.21 and scipy 1.7 you now get an error:We should change
np.typeDict
withnp.sctypeDict
most probably, but it is probably better to try to understand what we were trying to do in the functionget_dtypes
and fix it properly:mdp-toolkit/mdp/utils/routines.py
Line 274 in 300d288
Thanks to Elgin Road for reporting this!
The text was updated successfully, but these errors were encountered: