Пример #1
0
 def create_thread(self, callback):
     self.fitting_calculation_model = ThreadModelWrapperWithOutput(callback)
     return thread_model.ThreadModel(self.fitting_calculation_model)
Пример #2
0
 def create_calculation_thread(self, callback, *args) -> ThreadModel:
     """Create a thread for calculations."""
     self.thread_model_wrapper = ThreadModelWrapperWithOutput(
         callback, *args)
     return ThreadModel(self.thread_model_wrapper)
Пример #3
0
 def _create_fitting_thread(self, callback) -> ThreadModel:
     """Create a thread for fitting."""
     self.fitting_calculation_model = ThreadModelWrapperWithOutput(callback)
     return ThreadModel(self.fitting_calculation_model)
 def _create_parameter_combinations_thread(self, callback) -> ThreadModel:
     """Create a thread for fitting."""
     self.parameter_combinations_creator = ThreadModelWrapperWithOutput(
         callback)
     return ThreadModel(self.parameter_combinations_creator)