From 15e76e4932e9501553ff54bef217f859ef4c791e Mon Sep 17 00:00:00 2001 From: marcel Date: Tue, 15 Aug 2017 15:47:59 +0200 Subject: [PATCH] [refs #229] use last item in t instead of len(t) --- 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 c6d5b014..d84682de 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!")