From 5b5902a32994a8fe39480b44202ba19cfca8e607 Mon Sep 17 00:00:00 2001 From: Marcel Date: Mon, 15 Jan 2018 14:28:08 +0100 Subject: [PATCH] [update] keep filter corresponding to phase when refreshing plot --- pylot/RELEASE-VERSION | 2 +- pylot/core/util/widgets.py | 15 +++++++++++---- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/pylot/RELEASE-VERSION b/pylot/RELEASE-VERSION index ddf27fb8..7d063375 100644 --- a/pylot/RELEASE-VERSION +++ b/pylot/RELEASE-VERSION @@ -1 +1 @@ -b191b-dirty +1c51-dirty diff --git a/pylot/core/util/widgets.py b/pylot/core/util/widgets.py index b18ebd93..4a98435f 100644 --- a/pylot/core/util/widgets.py +++ b/pylot/core/util/widgets.py @@ -2355,10 +2355,17 @@ class PickDlg(QDialog): if self.autoFilterAction.isChecked(): self.filterActionP.setChecked(False) self.filterActionS.setChecked(False) - data = self.getWFData().copy() - title = self.getStation() - filter = self.filterActionP.isChecked() or self.filterActionS.isChecked() - self.plotWFData(filter=filter) + # data = self.getWFData().copy() + # title = self.getStation() + filter = False + phase = None + if self.filterActionP.isChecked(): + phase = 'P' + filter = True + if self.filterActionS.isChecked(): + phase = 'S' + filter = True + self.plotWFData(phase=phase, filter=filter) def resetZoom(self): ax = self.multicompfig.axes[0]