[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.)
This commit is contained in:
Marcel Paffrath 2017-08-29 15:23:25 +02:00
parent 89dc390125
commit 881cc39e0e
2 changed files with 1 additions and 10 deletions

View File

@ -1925,15 +1925,6 @@ class MainWindow(QMainWindow):
self.apw.insert_log_widget(self.listWidget) self.apw.insert_log_widget(self.listWidget)
self.apw.refresh_tooltips() 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.start.connect(self.start_autopick)
self.apw.show() self.apw.show()

View File

@ -803,7 +803,7 @@ def checksignallength(X, pick, TSNR, minsiglength, nfac, minpercent, iplot=0, fi
return returnflag 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 Function to check statistics of P-onset times: Control deviation from
median (maximum adjusted deviation = dttolerance) and apply pseudo- median (maximum adjusted deviation = dttolerance) and apply pseudo-