-
Notifications
You must be signed in to change notification settings - Fork 21
Revisit usage of overwrite_x
parameter
#185
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
13c6fa0
to
99dfd9d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR removes the deprecated overwrite_x
parameter, drops the old scipy.fftpack
interface, and switches all internal and user-facing calls to use the new out
keyword; it also fixes a bug when both s
and out
are provided for N-D FFTs.
- Remove entire
scipy.fftpack
interface and its tests - Replace
overwrite_x
without
in all APIs, implementations, and tests - Add new tests covering the
out
parameter and update documentation and changelog
Reviewed Changes
Copilot reviewed 9 out of 10 changed files in this pull request and generated 3 comments.
Show a summary per file
File | Description |
---|---|
mkl_fft/tests/test_fftnd.py | Removed overwrite_x , swapped call order, and added out tests |
mkl_fft/tests/test_fft1d.py | Replaced in-place overwrite_x tests with out , removed old pack tests |
mkl_fft/interfaces/_scipy_fftpack.py | Dropped legacy scipy.fftpack wrapper |
mkl_fft/interfaces/_scipy_fft.py | Added helper to translate overwrite_x into out , updated calls |
mkl_fft/_mkl_fft.py | Removed overwrite_x from public FFT function signatures |
mkl_fft/_fft_utils.py | Refactored internal loops to use out and dropped overwrite_x |
mkl_fft/init.py | Removed rfftpack /irfftpack exports |
README.md | Updated signatures to remove overwrite_x |
CHANGELOG.md | Documented dropped support and bug fix related to out |
Files not reviewed (1)
- mkl_fft/_pydfti.pyx: Language not supported
c165129
to
9fe528b
Compare
scipy.fftpack
is deprecated and with the following changesmkl_fft
interface forscipy.fftpack
stops working properly therefore the support forscipy.fftpack
is dropped.With introducing
out
kwarg in add support forout
keyword #157, havingoverwrite_x
kwarg becomes redundant therefore it is removed andmkl_fft.interfaces.scipy_fft
is appropriately adjusted for this change.mkl_fft
includes a bug similar to what explained here in NumPy which is resolved in this PR.