Exemplo n.º 1
0
    def execute(self):
        '''
        Add your code here that will kick off the execution of the step.
        Make sure you call the _doneExecution() method when finished.  This method
        may be connected up to a button in a widget for example.
        '''
        if self._view is None:
            model = SemiAutoModel()
            #             model.setLocation(os.path.join(self._location, self._config['identifier']))
            self._view = SemiAutoWidget(model)
            self._view.registerDoneExecution(self._doneExecution)
        else:
            self._view.clear()

        if self._image_data is not None:
            self._view.setImageData(self._image_data)

        self._view.initialize()

        self._setCurrentWidget(self._view)