From 2139674afa54dcbfa3ec4e2b009f5ad10153eedc Mon Sep 17 00:00:00 2001 From: Sebastianw Wehling-Benatelli Date: Mon, 11 Apr 2016 12:39:46 +0200 Subject: [PATCH] [bugfix] guessed that checking the same variable twice was not intended instead of checking for mpickX's twice it was probably meant to check for lpickX's value --- pylot/core/pick/autopick.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pylot/core/pick/autopick.py b/pylot/core/pick/autopick.py index 8d6de16c..57eb21e5 100755 --- a/pylot/core/pick/autopick.py +++ b/pylot/core/pick/autopick.py @@ -773,7 +773,7 @@ def autopickstation(wfstream, pickparam, verbose=False): plt.close() ########################################################################## # calculate "real" onset times - if mpickP is not None and epickP is not None and mpickP is not None: + if mpickP is not None and epickP is not None and lpickP is not None: lpickP = zdat[0].stats.starttime + lpickP epickP = zdat[0].stats.starttime + epickP mpickP = zdat[0].stats.starttime + mpickP @@ -784,7 +784,7 @@ def autopickstation(wfstream, pickparam, verbose=False): epickP = zdat[0].stats.starttime mpickP = zdat[0].stats.starttime - if mpickS is not None and epickS is not None and mpickS is not None: + if mpickS is not None and epickS is not None and lpickS is not None: lpickS = edat[0].stats.starttime + lpickS epickS = edat[0].stats.starttime + epickS mpickS = edat[0].stats.starttime + mpickS