From df2d5929d3c97cb9261b0818f3c68eb503b66f8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludger=20K=C3=BCperkoch?= Date: Fri, 11 Aug 2017 17:32:59 +0200 Subject: [PATCH] [Bugfix] If Sweight >= 4, SNR and/or slope might be None. --- 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 bdf76c5b..dc22eb90 100644 --- a/pylot/core/pick/autopick.py +++ b/pylot/core/pick/autopick.py @@ -863,7 +863,7 @@ def autopickstation(wfstream, pickparam, verbose=False, if Pweight < 4: ax2.plot(arhcf1.getTimeArray(), arhcf1.getCF() / max(arhcf1.getCF()), 'b', label='CF1') - if aicSflag == 1: + if aicSflag == 1 and Sweight < 4: ax2.plot(arhcf2.getTimeArray(), arhcf2.getCF() / max(arhcf2.getCF()), 'm', label='CF2') ax2.plot(