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

update np.float to float to fix NumPy 1.20 deprecation warnings #548

Merged
merged 1 commit into from Feb 25, 2021

Conversation

murrayrm
Copy link
Member

@murrayrm murrayrm commented Feb 20, 2021

Fixes the following warning (and others like it):

  /Users/murray/Dropbox/macosx/src/python-control/murrayrm/control/tests/timeresp_test.py:411: 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

@coveralls
Copy link

coveralls commented Feb 20, 2021

Coverage Status

Coverage remained the same at 88.79% when pulling f35331b on murrayrm:scipy_1_20_deprecations into 4788f6b on python-control:master.

@murrayrm murrayrm changed the title update np.float to float to fix SciPy 1.20 deprecation warnings update np.float to float to fix NumPy 1.20 deprecation warnings Feb 20, 2021
@murrayrm murrayrm merged commit 8cba949 into python-control:master Feb 25, 2021
@murrayrm murrayrm deleted the scipy_1_20_deprecations branch February 25, 2021 00:52
@murrayrm murrayrm added this to the 0.9.0 milestone Mar 20, 2021
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 this pull request may close these issues.

None yet

3 participants