From cc25a8e6cf0cd45ab937cf464d962a6a4f3d5ea8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludger=20K=C3=BCperkoch?= Date: Tue, 15 Aug 2017 17:01:27 +0200 Subject: [PATCH] Rearranged changes accidently got lost by former commit. --- 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 f622cfa3..9322f64a 100644 --- a/pylot/core/pick/utils.py +++ b/pylot/core/pick/utils.py @@ -476,7 +476,7 @@ def getsignalwin(t, t1, tsignal): ''' # get signal window - isignal, = np.where((t <= min([t1 + tsignal, len(t)])) \ + isignal, = np.where((t <= min([t1 + tsignal, t[-1]])) \ & (t >= t1)) if np.size(isignal) < 1: print("getsignalwin: Empty array isignal, check signal window!")