From bf20ad92da105fd2c425c093d3d34238f76a4a8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludger=20K=C3=BCperkoch?= Date: Wed, 19 Jun 2019 14:41:45 +0200 Subject: [PATCH] [bugfix] Condition for using entire waveform (Ldiff<0) was too weak. --- pylot/core/pick/autopick.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pylot/core/pick/autopick.py b/pylot/core/pick/autopick.py index 825894a9..00de7381 100644 --- a/pylot/core/pick/autopick.py +++ b/pylot/core/pick/autopick.py @@ -543,7 +543,6 @@ class AutopickStation(object): self.p_results.lpp = self.ztrace.stats.starttime + self.pickparams["timeerrorsP"][3] self.p_results.epp = self.ztrace.stats.starttime - self.pickparams["timeerrorsP"][3] self.p_results.mpp = self.ztrace.stats.starttime - self.p_results.channel = self.ztrace.stats.channel self.p_results.network = self.ztrace.stats.network # @@ -793,7 +792,7 @@ class AutopickStation(object): raise PickingFailedException('autopickstation: empty trace! Return!') Ldiff = Lwf - abs(Lc) - if Ldiff < 0 or self.pickparams['pstop'] <= self.pickparams['pstart']: + if Ldiff < self.pickparams['tlta'] or self.pickparams['pstop'] <= self.pickparams['pstart']: msg = 'autopickstation: Cutting times are too large for actual waveform!\nUsing entire waveform instead!' self.vprint(msg) self.pickparams['pstart'] = 0