andykee / lentil

Heart-healthy physical optics
https://andykee.github.io/lentil/
Other
14 stars 6 forks source link

NumPy alltrue deprecation #51

Closed andykee closed 8 months ago

andykee commented 8 months ago

Describe the issue:

================================================================================================ warnings summary ================================================================================================
tests/test_detector.py: 1 warning
tests/test_radiometry_blackbody.py: 5 warnings
tests/test_radiometry_spectrum.py: 45 warnings
  /home/akee/dev/lentil/lentil/radiometry.py:74: DeprecationWarning: `alltrue` is deprecated as of NumPy 1.25.0, and will be removed in NumPy 2.0. Please use `all` instead.
    self.wave = wave

tests/test_radiometry_spectrum.py::test_spectrum_resample
  /home/akee/dev/lentil/lentil/radiometry.py:438: DeprecationWarning: `alltrue` is deprecated as of NumPy 1.25.0, and will be removed in NumPy 2.0. Please use `all` instead.
    self.wave = wave

tests/test_radiometry_spectrum.py::test_spectrum_trim
  /home/akee/dev/lentil/lentil/radiometry.py:655: DeprecationWarning: `alltrue` is deprecated as of NumPy 1.25.0, and will be removed in NumPy 2.0. Please use `all` instead.
    self.wave = self.wave[index_min:index_max+1]

tests/test_radiometry_spectrum.py::test_spectrum_crop
tests/test_radiometry_spectrum.py::test_spectrum_crop_outside_wave_limits
  /home/akee/dev/lentil/lentil/radiometry.py:663: DeprecationWarning: `alltrue` is deprecated as of NumPy 1.25.0, and will be removed in NumPy 2.0. Please use `all` instead.
    self.wave = np.delete(self.wave, indx)