Changeset ecc5d043 in sasview for src/sas/qtgui/Perspectives/Fitting/Constraint.py
- Timestamp:
- Nov 16, 2018 3:05:20 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:
- 09e0c32
- Parents:
- baeac95
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Perspectives/Fitting/Constraint.py
rbaeac95 recc5d043 5 5 hence made into a class. 6 6 """ 7 def __init__(self, parent=None, param=None, value=0.0, min=None, max=None, func=None, value_ex=None): 7 def __init__(self, parent=None, param=None, value=0.0, 8 min=None, max=None, func=None, value_ex=None, 9 operator="="): 8 10 self._value = value 9 11 self._param = param … … 13 15 self._min = min 14 16 self._max = max 17 self._operator = operator 15 18 16 19 @property … … 69 72 self._max = val 70 73 74 @property 75 def operator(self): 76 # operator to use for constraint 77 return self._operator 78 79 @operator.setter 80 def operator(self, val): 81 self._operator = val 82
Note: See TracChangeset
for help on using the changeset viewer.