-
Notifications
You must be signed in to change notification settings - Fork 20
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
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.fftpackinterface and its tests - Replace
overwrite_xwithoutin all APIs, implementations, and tests - Add new tests covering the
outparameter 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
9fe528b to
0040c94
Compare
eadecd3 to
12677c0
Compare
18f29be to
230d8c1
Compare
|
Numpy tests are green with this PR |
antonwolfy
left a comment
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.
LGTM!
@ndgrigorian would you mind to merge this?
scipy.fftpackis deprecated and with the following changesmkl_fftinterface forscipy.fftpackstops working properly therefore the support forscipy.fftpackis dropped.With introducing
outkwarg in add support foroutkeyword #157, havingoverwrite_xkwarg becomes redundant therefore it is removed andmkl_fft.interfaces.scipy_fftis appropriately adjusted for this change.mkl_fftincludes a bug similar to what explained here in NumPy which is resolved in this PR.