Ignore:
Timestamp:
Nov 26, 2018 9:07:55 AM (6 years ago)
Author:
Piotr Rozyczko <piotr.rozyczko@…>
Branches:
ESS_GUI, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
Children:
9c207f5
Parents:
9c05f22
Message:

Redone the widget slightly, to fit with requirements in trac#1135.
Added comboboxes for all available fitpage names
Removed constraint of needing two selected fitpages
Removed the "Swap" button - it is redundant now.
Added context dependence on the "Select All" action.
Removed immediate constraint validation to allow for more complex
formulas

File:
1 edited

Legend:

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

    rd72ac57 r2e5081b  
    6969        self.assertEqual(self.widget.txtConstraint.text(), 'M1.scale') 
    7070        self.assertEqual(self.widget.txtOperator.text(), '=') 
    71         self.assertEqual(self.widget.txtName1.text(), 'M1') 
    72         self.assertEqual(self.widget.txtName2.text(), 'M1') 
     71        self.assertEqual(self.widget.cbModel1.currentText(), 'M1') 
     72        self.assertEqual(self.widget.cbModel2.currentText(), 'M1') 
    7373 
    7474    def testTooltip(self): 
     
    8181        self.assertEqual(self.widget.txtConstraint.toolTip(), tooltip) 
    8282 
    83     def testValidateFormula(self): 
     83    def notestValidateFormula(self): 
    8484        ''' assure enablement and color for valid formula ''' 
    8585        # Invalid string 
     
    141141        c = self.widget.constraint() 
    142142        self.assertEqual(c[0], 'M1') 
    143         self.assertEqual(c[1].func, 'M1.sld_solvent') 
     143        self.assertEqual(c[1].func, 'M1.bjerrum_length') 
    144144        #self.assertEqual(c[1].operator, '>=') 
    145145 
Note: See TracChangeset for help on using the changeset viewer.