From b607da7262a7a2fd47c4a110fdf4e542102d0f4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludger=20K=C3=BCperkoch?= Date: Mon, 25 Jun 2018 10:30:36 +0200 Subject: [PATCH] [Bugfix] it was not sure that enough waveform remains for processing after cutting with improper cut times --- pylot/core/pick/autopick.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pylot/core/pick/autopick.py b/pylot/core/pick/autopick.py index 00810447..ca1a6d07 100644 --- a/pylot/core/pick/autopick.py +++ b/pylot/core/pick/autopick.py @@ -333,7 +333,7 @@ def autopickstation(wfstream, pickparam, verbose=False, return Ldiff = Lwf - abs(Lc) - if Ldiff < 0 or pstop <= pstart: + if Ldiff <= 0 or pstop <= pstart or pstop - pstart <= thosmw: msg = 'autopickstation: Cutting times are too large for actual ' \ 'waveform!\nUsing entire waveform instead!' if verbose: print(msg)