Skip to content

Commit

Permalink
Bugfix for uneven values
Browse files Browse the repository at this point in the history
  • Loading branch information
prisae committed Aug 1, 2019
1 parent 7e15273 commit 00f6dff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyfftlog.py
Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,7 @@ def fhtq(a, xsave, tdir=1):
# _raw_fft(fct, n, -1, 1, 1, _fftpack.drfft)
fct = drfft(fct, n, 1, 0)

m = np.arange(1, n/2, dtype=int) # index variable
m = np.arange(1, n//2, dtype=int) # index variable
if q == 0: # unbiased (q = 0) transform
# multiply by (kr)^[- i 2 m pi/(n dlnr)] U_mu[i 2 m pi/(n dlnr)]
ar = fct[2*m-1]
Expand Down

0 comments on commit 00f6dff

Please sign in to comment.