Exemplo n.º 1
0
    def __init__(self):
        """Storage class for communication between the options dialog and the main frame"""
        self.use_model_default_optimizer = True
        self.double_precision = False

        self.method = mdt.configuration.get_general_optimizer_name()
        self.patience = mdt.configuration.get_general_optimizer_options(
        )['patience']

        if self.patience is None:
            self.patience = get_minimizer_options(self.method)['patience']
Exemplo n.º 2
0
 def _update_default_patience(self):
     method = OptimOptions.optim_routines[
         self.optimizationRoutine.currentText()]
     self.patience.setText(str(get_minimizer_options(method)['patience']))