From 238998e626d3be9129078e31229482a9a19ac6b6 Mon Sep 17 00:00:00 2001 From: Marcel Date: Thu, 21 Sep 2017 14:27:42 +0200 Subject: [PATCH] [cleanup] removed old unused class --- pylot/core/util/thread.py | 35 ----------------------------------- 1 file changed, 35 deletions(-) diff --git a/pylot/core/util/thread.py b/pylot/core/util/thread.py index 8a3f351a..ae56c697 100644 --- a/pylot/core/util/thread.py +++ b/pylot/core/util/thread.py @@ -5,41 +5,6 @@ from PySide.QtCore import QThread, Signal, Qt, Slot, QRunnable, QObject from PySide.QtGui import QDialog, QProgressBar, QLabel, QHBoxLayout, QPushButton -class AutoPickThread(QThread): - message = Signal(str) - finished = Signal() - - def __init__(self, parent, func, infile, fnames, eventid, savepath): - super(AutoPickThread, self).__init__() - self.setParent(parent) - self.func = func - self.infile = infile - self.fnames = fnames - self.eventid = eventid - self.savepath = savepath - - def run(self): - sys.stdout = self - - picks = self.func(None, None, self.infile, self.fnames, self.eventid, self.savepath) - - print("Autopicking finished!\n") - - try: - for station in picks: - self.parent().addPicks(station, picks[station], type='auto') - except AttributeError: - print(picks) - sys.stdout = sys.__stdout__ - self.finished.emit() - - def write(self, text): - self.message.emit(text) - - def flush(self): - pass - - class Thread(QThread): message = Signal(str)