Skip to content
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

BUG: Add proper error message for ShortTimeFFT for onesided FFTs and complex signals #20010

Merged
merged 1 commit into from Feb 2, 2024

Conversation

DietBru
Copy link
Contributor

@DietBru DietBru commented Feb 2, 2024

  • Raise ValueError in ShortTimeFFT.sft_detrend if parameter x is complex and ShortTimeFFT.onesided_fft is true.
  • Added unit test.
  • Updated documentation.

Closes issue #20009.

…d complex signals.

* Raise ValueError in `ShortTimeFFT.sft_detrend` if parameter `x` is complex and `ShortTimeFFT.onesided_fft` is true.
* Added unit test.
* Updated documentation.

Closes Issue scipy#20009
@github-actions github-actions bot added scipy.signal defect A clear bug or issue that prevents SciPy from being installed or used as expected labels Feb 2, 2024
Copy link
Member

@j-bowhay j-bowhay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @DietBru LGTM and test failure appears to unrelated

@j-bowhay j-bowhay added this to the 1.13.0 milestone Feb 2, 2024
@j-bowhay j-bowhay merged commit fe967c7 into scipy:main Feb 2, 2024
27 of 29 checks passed
@j-bowhay j-bowhay linked an issue Feb 2, 2024 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
defect A clear bug or issue that prevents SciPy from being installed or used as expected scipy.signal
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: ShortTimeFFT fails with complex input
2 participants