Skip to content

maths/radix2_fft.py: Fix calculation for Python 3.14 #12772

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

Merged
merged 4 commits into from
May 29, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed May 28, 2025
commit 4d0a53b2bd366ba98281dee25e82310b4c0a6544
4 changes: 3 additions & 1 deletion maths/radix2_fft.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,9 @@ def __multiply(self):
inverce_c = new_inverse_c
next_ncol *= 2
# Unpack
inverce_c = [complex(round(x[0].real, 8), round(x[0].imag, 8)) for x in inverce_c]
inverce_c = [
complex(round(x[0].real, 8), round(x[0].imag, 8)) for x in inverce_c
]

# Remove leading 0's
while inverce_c[-1] == 0:
Expand Down
Loading