From 86c76c6f619b36a0d536396de90f6bddd65433f4 Mon Sep 17 00:00:00 2001 From: Marcel Paffrath Date: Tue, 6 Jun 2017 11:16:57 +0200 Subject: [PATCH] [bugfix] 3 comp. window, time correction for trace overdone --- pylot/RELEASE-VERSION | 2 +- pylot/core/util/widgets.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pylot/RELEASE-VERSION b/pylot/RELEASE-VERSION index 7c42461f..90f0e370 100644 --- a/pylot/RELEASE-VERSION +++ b/pylot/RELEASE-VERSION @@ -1 +1 @@ -f7af-dirty +530a-dirty diff --git a/pylot/core/util/widgets.py b/pylot/core/util/widgets.py index 5ba3801d..5d27d981 100644 --- a/pylot/core/util/widgets.py +++ b/pylot/core/util/widgets.py @@ -997,7 +997,7 @@ class PickDlg(QDialog): # remove mean noise level from waveforms for trace in data: t = prepTimeAxis(trace.stats.starttime - stime, trace) - inoise = getnoisewin(t, ini_pick-stime_diff, noise_win, gap_win) + inoise = getnoisewin(t, ini_pick, noise_win, gap_win) trace = demeanTrace(trace=trace, window=inoise) self.setXLims([ini_pick - x_res, ini_pick + x_res]) @@ -1049,7 +1049,7 @@ class PickDlg(QDialog): # prepare plotting of data for trace in data: t = prepTimeAxis(trace.stats.starttime - stime, trace) - inoise = getnoisewin(t, ini_pick-stime_diff, noise_win, gap_win) + inoise = getnoisewin(t, ini_pick, noise_win, gap_win) trace = demeanTrace(trace, inoise) # scale waveform for plotting