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)
finished = Signal()
def __init__(self, parent, func, data, param):
def __init__(self, parent, func, infile, fnames, savepath):
super(AutoPickThread, self).__init__()
self.setParent(parent)
self.func = func
self.data = data
self.param = param
self.infile = infile
self.fnames = fnames
self.savepath = savepath
def run(self):
sys.stdout = self
picks = self.func(self.data, self.param)
picks = self.func(self.infile, self.fnames, self.savepath)
print("Autopicking finished!\n")