Pyspectral 0.13.1 not compatible with SciPy 1.14.x -> update dependencies
Closed this issue · 0 comments
arcanerr commented
Code Sample, a minimal, complete, and verifiable piece of code
Sorry for not being more verbose, I'm short on time.
AttributeError: module 'scipy.integrate' has no attribute 'trapz'
...
File "/usr/local/lib/python3.11/site-packages/pyspectral/radiance_tb_conversion.py", line 224, in tb2radiance
radiance = integrate.trapz(planck, self.wavelength_or_wavenumber) / self.rsr_integral
^^^^^^^^^^^^^^^
Problem description
Deprecated method scipy.integrate.trapz
removed in SciPy 1.14.0, see scipy/scipy#20486 leads to above exception.
Solution suggestions
- Bugfix version of pyspectral with requirement.txt containing
scipy>=0.14, < 1.14
(or so) - and/of next major version using
scipy.intergrate.trapezoid
- check
scipy.integrate
attributes whethertrapz
ortrapezoid
is available