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

Monitor Process Model raises deprecation warnings (np.float) #116

Closed
mathisrichter opened this issue Nov 29, 2021 · 1 comment · Fixed by #128
Closed

Monitor Process Model raises deprecation warnings (np.float) #116

mathisrichter opened this issue Nov 29, 2021 · 1 comment · Fixed by #128
Assignees
Labels
1-bug Something isn't working

Comments

@mathisrichter
Copy link
Contributor

The unit tests for the Monitor Process lead to deprecation warnings:

lava-nc\lava\src\lava\proc\monitor\models.py:23: 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
  np.float,
lava-nc\lava\src\lava\proc\monitor\models.py:26: 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
  np.float,

Suggested fix: Replace any occurence of np.float with float (models.py, lines 23 and 26)

@mathisrichter mathisrichter added 1-bug Something isn't working 0-needs-review For all new issues labels Nov 29, 2021
@elvinhajizada elvinhajizada self-assigned this Nov 29, 2021
@elvinhajizada
Copy link
Collaborator

@mathisrichter will do the suggested fix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1-bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants