From 1af88fbe85e12b9117554bb6df7a6ba02cae8d39 Mon Sep 17 00:00:00 2001 From: Sebastian Wehling-Benatelli Date: Mon, 29 Jun 2015 16:23:46 +0200 Subject: [PATCH] default values changed to the defaults from autopylot --- pylot/core/util/widgets.py | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/pylot/core/util/widgets.py b/pylot/core/util/widgets.py index 8069c293..2b718f8d 100644 --- a/pylot/core/util/widgets.py +++ b/pylot/core/util/widgets.py @@ -436,10 +436,10 @@ class PickDlg(QDialog): settings = QSettings() - nfac = settings.value('picking/nfac', 1.5) - noise_win = settings.value('picking/noise_win', 5.) - gap_win = settings.value('picking/gap_win', .5) - signal_win = settings.value('picking/signal_win', 1.5) + nfac = settings.value('picking/nfac_P', 1.3) + noise_win = settings.value('picking/noise_win_P', 5.) + gap_win = settings.value('picking/gap_win_P', .2) + signal_win = settings.value('picking/signal_win_P', 3.) result = getSNR(wfdata, (noise_win, gap_win, signal_win), ini_pick) @@ -469,6 +469,12 @@ class PickDlg(QDialog): self.draw() def setIniPickS(self, gui_event): + settings = QSettings() + + nfac = settings.value('picking/nfac_P', 1.5) + noise_win = settings.value('picking/noise_win_P', 5.) + gap_win = settings.value('picking/gap_win_P', .2) + signal_win = settings.value('picking/signal_win_P', 3.) pass def setPick(self, gui_event):