[closes #232] load autopicks automatically
This commit is contained in:
parent
2c054161c1
commit
256f3b6838
@ -1865,7 +1865,7 @@ class MainWindow(QMainWindow):
|
||||
self.addListItem(str(self._inputs))
|
||||
|
||||
self.mp_worker.signals.message.connect(self.addListItem)
|
||||
# self.mp_thread.finished.connect(self.finalizeAutoPick)
|
||||
self.mp_worker.signals.result.connect(self.finalizeAutoPick)
|
||||
|
||||
def autoPickProject(self):
|
||||
if not self.apd_local:
|
||||
@ -1877,10 +1877,12 @@ class MainWindow(QMainWindow):
|
||||
self.apd_sge = AutoPickDlg(self, sge=True)
|
||||
self.apd_sge.show()
|
||||
|
||||
def finalizeAutoPick(self):
|
||||
def finalizeAutoPick(self, result):
|
||||
if result:
|
||||
event = self.get_current_event()
|
||||
event.addAutopicks(result)
|
||||
self.drawPicks(picktype='auto')
|
||||
self.draw()
|
||||
self.mp_thread.quit()
|
||||
|
||||
def addPicks(self, station, picks, type='manual'):
|
||||
stat_picks = self.getPicksOnStation(station, type)
|
||||
|
@ -134,7 +134,7 @@ class Worker(QRunnable):
|
||||
#traceback.print_exc()
|
||||
exctype, value = sys.exc_info ()[:2]
|
||||
print(exctype, value, traceback.format_exc())
|
||||
#self.signals.error.emit ((exctype, value, traceback.format_exc ()))
|
||||
self.signals.error.emit ((exctype, value, traceback.format_exc ()))
|
||||
else:
|
||||
self.signals.result.emit(result)
|
||||
finally:
|
||||
|
Loading…
Reference in New Issue
Block a user