Rename scipy.fftpack to scipy.fft#201
Conversation
|
Will this make imagehash break on installs with old scipy versions? |
|
What means and is "old"? If that is important, shouldn't it be part already of the tests? |
|
To have this accepted, we would need to know
Currently nothing is broken and the code is passing tests, so there is little gain by this PR. There is merely a vague threat of potential (not even planned) future incompatibility. Scipy advises new code should use scipy.fft. imagehash is not new code. |
|
For example, I am on Python 3.11.6 with scipy 1.10.1 and can import fftpack without issue/warning. |
|
Hi, I checked roughly and can answer a part of your questions:
For the Python version i need to check more, hope I could help a little bit for starters! |
|
I am still confused though. Does using If there is no problem currently, I'd prefer to wait until scipy disables it, and then make the change in imagehash, to support as long as possible old scipy/python combinations without breaking them. |
This submodule is considered legacy and will no longer receive updates. This could also mean it will be removed in future SciPy versions. New code should use scipy.fft. https://docs.scipy.org/doc/scipy/reference/fftpack.html
|
From the
And if you compare |
Change
scipy.fftpacktoscipy.fftReference
Source: https://docs.scipy.org/doc/scipy/reference/fftpack.html
Closes #108