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

DeprecationWarning: np.float is a deprecated alias for the builtin float #33

Closed
espenhgn opened this issue Feb 19, 2021 · 3 comments · Fixed by #34
Closed

DeprecationWarning: np.float is a deprecated alias for the builtin float #33

espenhgn opened this issue Feb 19, 2021 · 3 comments · Fixed by #34

Comments

@espenhgn
Copy link
Contributor

Hi @alejoe91 ;
The LFPy tests now throws a bunch of DeprecationWarnings from numpy (>v1.20) via MEAutility. np.float should just be float presumably:

  /Users/ehagen/anaconda3/envs/lfpy/lib/python3.9/site-packages/MEAutility/core.py:542: DeprecationWarning: `np.float` is a deprecated alias for the builtin `float`. To silence this warning, use `float` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.float64` here.
  Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
    if isinstance(current_value, (float, int, np.float, np.integer)):
@alejoe91
Copy link
Owner

Thanks Espen! I'm a bit busy these days, would you have time to push a fix? Otherwise I'll get to it next week

@espenhgn
Copy link
Contributor Author

Sure can do! Take care.

@alejoe91
Copy link
Owner

Thanks!!! :)

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 a pull request may close this issue.

2 participants