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

Fix numpy deprecation warnings #1274

Merged
merged 1 commit into from
Aug 19, 2021
Merged

Conversation

bouweandela
Copy link
Member

Description

Fix the numpy deprecation warnings coming from tests/integration/preprocessor/_regrid/test_extract_point.py:

tests/integration/preprocessor/_regrid/test_extract_point.py::Test::test_extract_point__multiple_both_linear
tests/integration/preprocessor/_regrid/test_extract_point.py::Test::test_extract_point__multiple_both_nearest
tests/integration/preprocessor/_regrid/test_extract_point.py::Test::test_extract_point__multiple_linear
tests/integration/preprocessor/_regrid/test_extract_point.py::Test::test_extract_point__multiple_nearest
tests/integration/preprocessor/_regrid/test_extract_point.py::Test::test_extract_point__single_linear
tests/integration/preprocessor/_regrid/test_extract_point.py::Test::test_extract_point__single_nearest
  /develop/tests/integration/preprocessor/_regrid/test_extract_point.py:22: 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

tests/integration/preprocessor/_regrid/test_extract_point.py::Test::test_extract_point__multiple_both_linear
  /develop/tests/integration/preprocessor/_regrid/test_extract_point.py:153: 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

tests/integration/preprocessor/_regrid/test_extract_point.py::Test::test_extract_point__multiple_both_nearest
  /develop/tests/integration/preprocessor/_regrid/test_extract_point.py:181: 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

tests/integration/preprocessor/_regrid/test_extract_point.py::Test::test_extract_point__multiple_linear
  /develop/tests/integration/preprocessor/_regrid/test_extract_point.py:108: 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

tests/integration/preprocessor/_regrid/test_extract_point.py::Test::test_extract_point__multiple_nearest
  /develop/tests/integration/preprocessor/_regrid/test_extract_point.py:138: 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

tests/integration/preprocessor/_regrid/test_extract_point.py::Test::test_extract_point__single_nearest
  /develop/tests/integration/preprocessor/_regrid/test_extract_point.py:68: 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

Before you get started

Checklist

It is the responsibility of the author to make sure the pull request is ready to review. The icons indicate whether the item will be subject to the 🛠 Technical or 🧪 Scientific review.


To help with the number pull requests:

@codecov
Copy link

codecov bot commented Aug 19, 2021

Codecov Report

Merging #1274 (e2e0edc) into main (362eec9) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #1274   +/-   ##
=======================================
  Coverage   86.39%   86.39%           
=======================================
  Files         188      188           
  Lines        9167     9167           
=======================================
  Hits         7920     7920           
  Misses       1247     1247           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 362eec9...e2e0edc. Read the comment docs.

Copy link
Contributor

@valeriupredoi valeriupredoi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cheers @bouweandela 🍺

@valeriupredoi valeriupredoi merged commit b21dee8 into main Aug 19, 2021
@valeriupredoi valeriupredoi deleted the fix-deprecation-warnings branch August 19, 2021 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants