class SegmentationController(GraphicController): finished = QtCore.pyqtSignal() def __init__(self, collection): super(SegmentationController, self).__init__(collection) self.segmenter = Segmentation() def run(self): reduced = self.segmenter.reduction(self.data) self.data = self.segmenter.segment_all_samples(reduced) # self.emit(QtCore.SIGNAL("finished()")) self.finished.emit()
def __init__(self, collection): super(SegmentationController, self).__init__(collection) self.segmenter = Segmentation()