Skip to content

Commit 7e7af22

Browse files
authored
maths/radix2_fft.py: Fix calculation for Python 3.14
As suggested at: * #12729 (comment) * #12710 (comment) @MaximSmolskiy @KirilBangachev @skirpichev Careful review, please. I am just implementing the suggestion, but I do not have any expertise in this area.
1 parent e26c388 commit 7e7af22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

maths/radix2_fft.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ def __multiply(self):
147147
inverce_c = new_inverse_c
148148
next_ncol *= 2
149149
# Unpack
150-
inverce_c = [round(x[0].real, 8) + round(x[0].imag, 8) * 1j for x in inverce_c]
150+
inverce_c = [complex(round(x[0].real, 8), round(x[0].imag, 8)) for x in inverce_c]
151151

152152
# Remove leading 0's
153153
while inverce_c[-1] == 0:

0 commit comments

Comments
 (0)