From 186d8652b34d0db7b19ae3a933a8ee9e1d4458ad Mon Sep 17 00:00:00 2001 From: Al Date: Wed, 18 Nov 2015 23:40:22 +0000 Subject: [PATCH] Fix smoothing warning --- src/spectrum.py | 4 ++-- src/version-timestamp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/spectrum.py b/src/spectrum.py index 5471054..de86210 100644 --- a/src/spectrum.py +++ b/src/spectrum.py @@ -336,8 +336,8 @@ def smooth_sweep(sweep, winFunc, ratio): pos = WINFUNC[::2].index(winFunc) function = WINFUNC[1::2][pos] length = len(sweep) / ratio - if length < 2: - length = 2 + if length < 3: + length = 3 window = function(length) data = numpy.array([x[1] for x in sweep.items()]) diff --git a/src/version-timestamp b/src/version-timestamp index a2b4448..ab2e918 100644 --- a/src/version-timestamp +++ b/src/version-timestamp @@ -1 +1 @@ -1447861642 \ No newline at end of file +1447889903 \ No newline at end of file