Ignore:
Timestamp:
Mar 21, 2018 8:24:36 AM (7 years ago)
Author:
Piotr Rozyczko <rozyczko@…>
Branches:
ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
Children:
8ac3551
Parents:
3b3b40b
Message:

Code cleanup and minor fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/Perspectives/Fitting/FittingWidget.py

    r3b3b40b r8b480d27  
    424424            self.onSelectModel() 
    425425 
    426     def customModels(self): 
     426    @classmethod 
     427    def customModels(cls): 
    427428        """ Reads in file names in the custom plugin directory """ 
    428429        return ModelUtilities._find_models() 
     
    10511052            self._model_model.clear() 
    10521053            return 
    1053              
     1054 
    10541055        # Safely clear and enable the model combo 
    10551056        self.cbModel.blockSignals(True) 
     
    13571358        smearing, accuracy, smearing_min, smearing_max = self.smearing_widget.state() 
    13581359 
    1359         constraints = self.getConstraintsForFitting() 
     1360        # Get the constraints. 
     1361        constraints = self.getComplexConstraintsForModel() 
     1362        if fitter is None: 
     1363            # For single fits - check for inter-model constraints 
     1364            constraints = self.getConstraintsForFitting() 
    13601365 
    13611366        smearer = None 
Note: See TracChangeset for help on using the changeset viewer.