Re-initialized autoPyLoT from GUI, new input parameter eventid to make sure processing the right event. Buggy!

This commit is contained in:
Ludger Küperkoch
2017-05-19 12:30:03 +02:00
parent e911262c3e
commit 4767add68f
4 changed files with 42 additions and 31 deletions

View File

@@ -1 +1 @@
cf971-dirty
e911-dirty

View File

@@ -8,18 +8,19 @@ class AutoPickThread(QThread):
message = Signal(str)
finished = Signal()
def __init__(self, parent, func, infile, fnames, savepath):
def __init__(self, parent, func, infile, fnames, eventid, savepath):
super(AutoPickThread, self).__init__()
self.setParent(parent)
self.func = func
self.infile = infile
self.fnames = fnames
self.eventid = eventid
self.savepath = savepath
def run(self):
sys.stdout = self
picks = self.func(self.infile, self.fnames, self.savepath)
picks = self.func(None, None, self.infile, self.fnames, self.eventid, self.savepath)
print("Autopicking finished!\n")