Ejemplo n.º 1
0
class SimulationController(GraphicController):
    finished = QtCore.pyqtSignal()
    def __init__(self, collection, slice_id, **options):
        super(SimulationController, self).__init__(collection)
        self.physical_cons = options['physical_cons']
        self.inputs = options['inputs']
        self.slice_id = slice_id

    def run(self):
        self.engine = SimulationEngine(self.data, self.slice_id, **self.physical_cons)
        self.data = self.engine.simulationCicle(**self.inputs)
        self.finished.emit()
Ejemplo n.º 2
0
 def run(self):
     self.engine = SimulationEngine(self.data, self.slice_id, **self.physical_cons)
     self.data = self.engine.simulationCicle(**self.inputs)
     self.finished.emit()