Skip to content

Commit

Permalink
Fix smoothing warning
Browse files Browse the repository at this point in the history
  • Loading branch information
EarToEarOak committed Nov 18, 2015
1 parent 8f70529 commit 186d865
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/spectrum.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()])
Expand Down
2 changes: 1 addition & 1 deletion src/version-timestamp
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1447861642
1447889903

0 comments on commit 186d865

Please sign in to comment.