radio-astro-tools / spectral-cube

Library for reading and analyzing astrophysical spectral data cubes
http://spectral-cube.rtfd.org
BSD 3-Clause "New" or "Revised" License
97 stars 65 forks source link

np.float is deprecated #743

Closed pllim closed 3 years ago

pllim commented 3 years ago

spectral_cube/wcs_utils.py:395: 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

codecov-commenter commented 3 years ago

Codecov Report

Merging #743 (31771c1) into master (8d07dc9) will not change coverage. The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #743   +/-   ##
=======================================
  Coverage   78.21%   78.21%           
=======================================
  Files          24       24           
  Lines        5775     5775           
=======================================
  Hits         4517     4517           
  Misses       1258     1258           
Impacted Files Coverage Δ
spectral_cube/masks.py 79.93% <100.00%> (ø)
spectral_cube/wcs_utils.py 91.83% <100.00%> (ø)

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 8d07dc9...31771c1. Read the comment docs.

keflavich commented 3 years ago

Thanks @pllim!