From bb9a2392c9cd92e01dadd25682d7d8a8952d1b0d Mon Sep 17 00:00:00 2001 From: "per.andreas.brodtkorb" Date: Tue, 25 Jan 2011 14:55:44 +0000 Subject: [PATCH] Fixed a bug in SpecData1D.tocovdata --- pywafo/src/wafo/spectrum/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pywafo/src/wafo/spectrum/core.py b/pywafo/src/wafo/spectrum/core.py index 523fc63..1f92036 100644 --- a/pywafo/src/wafo/spectrum/core.py +++ b/pywafo/src/wafo/spectrum/core.py @@ -876,7 +876,7 @@ class SpecData1D(WafoData): acf.norm = spec.norm 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 for i in range(1, nr + 1): rper = -1j * w * rper