From 9e74ff04c2dd43b1f4e32f03e790bffc878ce5cc Mon Sep 17 00:00:00 2001 From: Marcel Date: Thu, 22 Feb 2018 16:31:01 +0100 Subject: [PATCH] [add] linear detrend for manual picking... --- pylot/RELEASE-VERSION | 2 +- pylot/core/util/widgets.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/pylot/RELEASE-VERSION b/pylot/RELEASE-VERSION index 4577c397..026b25e6 100644 --- a/pylot/RELEASE-VERSION +++ b/pylot/RELEASE-VERSION @@ -1 +1 @@ -b076-dirty +39b9-dirty diff --git a/pylot/core/util/widgets.py b/pylot/core/util/widgets.py index 507431e0..6f2816aa 100644 --- a/pylot/core/util/widgets.py +++ b/pylot/core/util/widgets.py @@ -2016,6 +2016,7 @@ class PickDlg(QDialog): if filterphase: filteroptions = self.getFilterOptions(filterphase).parseFilterOptions() try: + data.detrend('linear') data.filter(**filteroptions) #wfdata.filter(**filteroptions)# MP MP removed filtering of original data except ValueError as e: @@ -2095,6 +2096,7 @@ class PickDlg(QDialog): wfdata = self.getWFData().copy().select(channel=channel) if filteroptions: try: + wfdata.detrend('linear') wfdata.filter(**filteroptions) except ValueError as e: self.qmb = QtGui.QMessageBox(QtGui.QMessageBox.Icon.Information,