Exchanged autopick with autoPyLoT to get full accees to entire autoPyLoT procederes within GUI.

This commit is contained in:
Ludger Küperkoch 2017-04-05 11:40:24 +02:00
parent 94c1e85484
commit 3f027bedf5

View File

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