pmelchior / scarlet

hyperspectral galaxy modeling and deblending
MIT License
49 stars 22 forks source link

Avoid next_fast_len from deprecated helper namespace #279

Closed arunkannawadi closed 1 year ago

arunkannawadi commented 1 year ago

This patch avoids deprecation warnings.

 DeprecationWarning: Please use `next_fast_len` from the `scipy.fftpack` namespace, the `scipy.fftpack.helper` namespace is deprecated.
pmelchior commented 1 year ago

Does this require a minimum scipy version?

arunkannawadi commented 1 year ago

scipy.fftpack.helper was marked as legacy in scipy 1.4.0: https://docs.scipy.org/doc/scipy-1.4.0/reference/fftpack.html

Currently (in scipy 1.10.0), even scipy.fftpack is considered legacy and the recommended usage of next_fast_len is from scipy.fft.