Changeset 09e0c32 in sasview for src/sas/qtgui/Perspectives/Fitting/MultiConstraint.py
- Timestamp:
- Nov 16, 2018 6:44:40 AM (5 years ago)
- 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:
- 64b9e61
- Parents:
- ecc5d043
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Perspectives/Fitting/MultiConstraint.py
rbaeac95 r09e0c32 31 31 self.params = params 32 32 self.parent = parent 33 # Text of the constraint 33 34 self.function = None 35 # Should this constraint be validated? 36 self.validate = True 34 37 35 38 self.input_constraint = constraint 36 39 if self.input_constraint is not None: 37 40 variable = constraint.value 38 #variable = func[func.index('.')+1:]39 41 self.function = constraint.func 40 42 self.params.append(variable) 41 43 self.model_name = constraint.value_ex 44 # Passed constraint may be too complex for simple validation 45 self.validate = constraint.validate 42 46 else: 43 47 self.model_name = self.params[1] … … 97 101 Add visual cues when formula is incorrect 98 102 """ 103 # Don't validate if requested 104 if not self.validate: return 105 99 106 formula_is_valid = False 100 107 formula_is_valid = self.validateConstraint(self.txtConstraint.text())
Note: See TracChangeset
for help on using the changeset viewer.