From 707618c6b1e4a6d0d1aba6651ee1f0a35a6b0afe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludger=20K=C3=BCperkoch?= Date: Fri, 10 Jul 2015 15:23:48 +0200 Subject: [PATCH] Found bug in fmpicker, copy-and-paste error. --- pylot/core/pick/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pylot/core/pick/utils.py b/pylot/core/pick/utils.py index 40845d7c..807fda4c 100644 --- a/pylot/core/pick/utils.py +++ b/pylot/core/pick/utils.py @@ -231,7 +231,7 @@ def fmpicker(Xraw, Xfilt, pickwin, Pick, iplot=None): imax2 = np.argmax(abs(xfilt[ipick[0][1]:ipick[0][li2]])) if imax2 == 0: imax2 = np.argmax(abs(xfilt[ipick[0][1]:ipick[0][index2[1]]])) - if imax1 == 0: + if imax2 == 0: print 'fmpicker: Zero crossings too close!' print 'Skip first motion determination!' return FM