Skip to content

Fixes: Error when using FFT on data with one point#3070

Merged
j9ac9k merged 1 commit intopyqtgraph:masterfrom
mohass98:fix-fft-with-one-point
Jun 23, 2024
Merged

Fixes: Error when using FFT on data with one point#3070
j9ac9k merged 1 commit intopyqtgraph:masterfrom
mohass98:fix-fft-with-one-point

Conversation

@Silas-K
Copy link
Copy Markdown
Contributor

@Silas-K Silas-K commented Jun 23, 2024

see #3018

Handle single data point case in Fourier Transform

  • Adds a condition to handle cases where there is only one data point
  • Ensures the function returns zero frequency and the magnitude of the single data point as fallback

Credits

The solution was proposed by Python-simulation in issue #3018.

EDIT (added for automatic issue closing by @j9ac9k):

Fixes #3018

…nsform

- Adds a condition to handle cases where there is only one data point
- Ensures the function returns zero frequency and the magnitude of the single data point as fallback
@j9ac9k
Copy link
Copy Markdown
Member

j9ac9k commented Jun 23, 2024

Thanks for the PR @Silas-K ! Appreciate the PR!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Error when using FFT on data with one point

2 participants