From f9203d92e8e33701ddbc47283cf86ee72ddb4663 Mon Sep 17 00:00:00 2001 From: Marcel Date: Mon, 5 Mar 2018 17:49:40 +0100 Subject: [PATCH] [bugfix] tuneAutopicker not working without 'P' and 'S' in picks --- pylot/RELEASE-VERSION | 2 +- pylot/core/util/widgets.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pylot/RELEASE-VERSION b/pylot/RELEASE-VERSION index 34b0263b..c687e0f2 100644 --- a/pylot/RELEASE-VERSION +++ b/pylot/RELEASE-VERSION @@ -1 +1 @@ -8dab-dirty +39f92-dirty diff --git a/pylot/core/util/widgets.py b/pylot/core/util/widgets.py index 8a2c6c32..21e48650 100644 --- a/pylot/core/util/widgets.py +++ b/pylot/core/util/widgets.py @@ -3087,7 +3087,7 @@ class TuneAutopicker(QWidget): def plot_manual_picks_to_figs(self): picks = self.get_current_event_picks(self.get_current_station()) - if not picks: + if not picks or not 'P' in picks or not 'S' in picks: return for plotitem in self._manual_pick_plots: self.clear_plotitem(plotitem)