[new] reverting stdout redirection after auto picking is done; added method finalizeAutoPick for purposes to be done after the auto picking thread has finished

This commit is contained in:
2015-12-01 05:03:55 +01:00
parent 41a495371d
commit ed7a323c50
2 changed files with 8 additions and 2 deletions

View File

@@ -4,6 +4,7 @@ from PySide.QtCore import QThread, Signal
class AutoPickThread(QThread):
message = Signal(str)
finished = Signal()
def __init__(self, parent, func, data, param):
super(AutoPickThread, self).__init__()
@@ -24,8 +25,8 @@ class AutoPickThread(QThread):
self.parent().addPicks(station, picks[station], type='auto')
except AttributeError:
print(picks)
# plot picks to section
self.parent().drawPicks(picktype='auto')
sys.stdout = sys.__stdout__
self.finished.emit()
def write(self, text):