Fixed a bug in SpecData1D.tocovdata

master
per.andreas.brodtkorb 14 years ago
parent 367774c292
commit bb9a2392c9

@ -876,7 +876,7 @@ class SpecData1D(WafoData):
acf.norm = spec.norm acf.norm = spec.norm
if nr > 0: if nr > 0:
w = r_[w , zeros(nfft - 2 * n_f + 2) , -w[n_f - 1:0:-1] ] w = r_[w , zeros(nfft - 2 * n_f + 2) , -w[n_f - 2:0:-1] ]
fieldname = 'R' + lagtype[0] * nr fieldname = 'R' + lagtype[0] * nr
for i in range(1, nr + 1): for i in range(1, nr + 1):
rper = -1j * w * rper rper = -1j * w * rper

Loading…
Cancel
Save