Exchanged autopick with autoPyLoT to get full accees to entire autoPyLoT procederes within GUI.
This commit is contained in:
parent
94c1e85484
commit
3f027bedf5
@ -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")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user