From 881cc39e0ed400309aea62b47030ebc4cf4ccc25 Mon Sep 17 00:00:00 2001 From: Marcel Date: Tue, 29 Aug 2017 15:23:25 +0200 Subject: [PATCH] [bugfix] add default value to jackfactor if not done, autoPyLoT will raise an error on old pylot.in files (or projects with old parameter obj.) --- QtPyLoT.py | 9 --------- pylot/core/pick/utils.py | 2 +- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/QtPyLoT.py b/QtPyLoT.py index ca47bf07..624e8983 100755 --- a/QtPyLoT.py +++ b/QtPyLoT.py @@ -1925,15 +1925,6 @@ class MainWindow(QMainWindow): self.apw.insert_log_widget(self.listWidget) self.apw.refresh_tooltips() - # self.logDockWidget = QDockWidget("AutoPickLog", self) - # self.logDockWidget.setObjectName("LogDockWidget") - # self.logDockWidget.setAllowedAreas( - # Qt.LeftDockWidgetArea | Qt.RightDockWidgetArea) - # self.logDockWidget.setWidget(self.listWidget) - # self.addDockWidget(Qt.LeftDockWidgetArea, self.logDockWidget) - # self.addListItem('Loading default values from PyLoT-input file %s' - # % self.infile) - self.apw.start.connect(self.start_autopick) self.apw.show() diff --git a/pylot/core/pick/utils.py b/pylot/core/pick/utils.py index 049d2d44..006f9837 100644 --- a/pylot/core/pick/utils.py +++ b/pylot/core/pick/utils.py @@ -803,7 +803,7 @@ def checksignallength(X, pick, TSNR, minsiglength, nfac, minpercent, iplot=0, fi return returnflag -def checkPonsets(pickdic, dttolerance, jackfactor, iplot=0, fig_dict=None): +def checkPonsets(pickdic, dttolerance, jackfactor=5, iplot=0, fig_dict=None): ''' Function to check statistics of P-onset times: Control deviation from median (maximum adjusted deviation = dttolerance) and apply pseudo-