[bugfix] plotting autopicks has to be done within thread because code outside the threads scope is executed in parallel
This commit is contained in:
parent
3f91fddd3e
commit
d67556796c
@ -17,11 +17,16 @@ class AutoPickThread(QThread):
|
|||||||
|
|
||||||
picks = self.func(self.data, self.param)
|
picks = self.func(self.data, self.param)
|
||||||
|
|
||||||
|
print("Autopicking finished!\n")
|
||||||
|
|
||||||
try:
|
try:
|
||||||
for station in picks:
|
for station in picks:
|
||||||
self.parent().addPicks(station, picks[station])
|
self.parent().addPicks(station, picks[station], type='auto')
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
print(picks)
|
print(picks)
|
||||||
|
# plot picks to section
|
||||||
|
self.parent().drawPicks(picktype='auto')
|
||||||
|
|
||||||
|
|
||||||
def write(self, text):
|
def write(self, text):
|
||||||
self.message.emit(text)
|
self.message.emit(text)
|
||||||
|
Loading…
Reference in New Issue
Block a user