Ignore:
Timestamp:
Feb 8, 2018 8:37:28 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:
731efec
Parents:
725d9c06
git-author:
Piotr Rozyczko <rozyczko@…> (02/08/18 08:32:10)
git-committer:
Piotr Rozyczko <rozyczko@…> (02/08/18 08:37:28)
Message:

Simple vs. complex constraints behaviour fixed.

File:
1 edited

Legend:

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

    ra90c9c5 r235d766  
    294294        self.parent.fittingStoppedSignal.emit(self.getTabsForFit()) 
    295295 
     296        # Assure the fitting succeeded 
     297        if result is None or not result: 
     298            msg = "Fitting failed. Please ensure correctness of chosen constraints." 
     299            self.parent.communicate.statusBarUpdateSignal.emit(msg) 
     300            return 
     301 
    296302        # get the elapsed time 
    297303        elapsed = result[1] 
     
    553559 
    554560        # Check if any constraints present in tab 
    555         constraint_names = fit_page.getConstraintsForModel() 
     561        constraint_names = fit_page.getComplexConstraintsForModel() 
    556562        constraints = fit_page.getConstraintObjectsForModel() 
    557563        if not constraints:  
Note: See TracChangeset for help on using the changeset viewer.