(self, f)
Parameters
        ----------
        f : Future
            The future instance holding the built model
Parameters
        ----------
        f : Future
            The future instance holding the built model
Parameters ---------- f : Future The future instance holding the built model
def _task_finished(self, f):
        """
        Parameters
        ----------
        f : Future
            The future instance holding the built model
        """
        assert self.thread() is QThread.currentThread()
        assert self._task is not None
        assert self._task.future is f
        assert f.done()
        self._task.deleteLater()
        self._task = None  # pylint: disable=attribute-defined-outside-init
        self.setBlocking(False)
        self.progressBarFinished()

        try:
            self.model = f.result()
        except Exception as ex:  # pylint: disable=broad-except
            # Log the exception with a traceback
            log = logging.getLogger()
            log.exception(__name__, exc_info=True)
            self.model = None
            self.show_fitting_failed(ex)
        else:
            self.model.name = self.learner_name
            self.model.instances = self.data
            self.model.skl_model.orange_callback = None  # remove unpicklable callback
            self.Outputs.model.send(self.model)
def _task_finished ( self , f ) : assert self . thread ( ) is QThread . currentThread ( ) assert self . _task is not None assert self . _task . future is f assert f . done ( ) self . _task . deleteLater ( ) self . _task = None # pylint: disable=attribute-defined-outside-init self . setBlocking ( False ) self . progressBarFinished ( ) try : self . model = f . result ( ) except Exception as ex : # pylint: disable=broad-except # Log the exception with a traceback log = logging . getLogger ( ) log . exception ( __name__ , exc_info = True ) self . model = None self . show_fitting_failed ( ex ) else : self . model . name = self . learner_name self . model . instances = self . data self . model . skl_model . orange_callback = None # remove unpicklable callback self . Outputs . model . send ( self . model )