[bugfix] autoPyLoT <-> obspyDMT
This commit is contained in:
parent
7ad36c2305
commit
2a8efd0904
5
PyLoT.py
5
PyLoT.py
@ -2481,6 +2481,7 @@ class MainWindow(QMainWindow):
|
||||
# export current picks etc.
|
||||
self.exportAllEvents(['.xml'])
|
||||
|
||||
wfpath = self.dataPlot.qcombo_processed.currentText() if self.obspy_dmt else ''
|
||||
# define arguments for picker
|
||||
args = {'parameter': self._inputs,
|
||||
'station': 'all',
|
||||
@ -2490,8 +2491,8 @@ class MainWindow(QMainWindow):
|
||||
'fig_dict': None,
|
||||
'fig_dict_wadatijack': self.fig_dict_wadatijack,
|
||||
'locflag': 0,
|
||||
'savexml': False}
|
||||
|
||||
'savexml': False,
|
||||
'obspyDMT_wfpath': wfpath}
|
||||
# init pick thread
|
||||
self.mp_thread = QtCore.QThreadPool()
|
||||
self.mp_worker = Worker(autoPyLoT, args, redirect_stdout=True)
|
||||
|
@ -3409,6 +3409,7 @@ class TuneAutopicker(QWidget):
|
||||
if not station:
|
||||
self._warn('No station selected')
|
||||
return
|
||||
wfpath = self.wftype if self.obspy_dmt else ''
|
||||
args = {'parameter': self.parameter,
|
||||
'station': station,
|
||||
'fnames': 'None',
|
||||
@ -3417,7 +3418,7 @@ class TuneAutopicker(QWidget):
|
||||
'fig_dict': self.fig_dict,
|
||||
'locflag': 0,
|
||||
'savexml': False,
|
||||
'obspyDMT_wfpath': self.obspy_dmt}
|
||||
'obspyDMT_wfpath': wfpath}
|
||||
for key in self.fig_dict.keys():
|
||||
if not key == 'plot_style':
|
||||
self.fig_dict[key].clear()
|
||||
|
Loading…
Reference in New Issue
Block a user