Changeset baeac95 in sasview for src/sas/qtgui/Perspectives/Fitting/Constraint.py
- Timestamp:
- Nov 14, 2018 5:43:28 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:
- ecc5d043
- Parents:
- e5ae812
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Perspectives/Fitting/Constraint.py
r14ec91c5 rbaeac95 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 ):7 def __init__(self, parent=None, param=None, value=0.0, min=None, max=None, func=None, value_ex=None): 8 8 self._value = value 9 9 self._param = param 10 self._value_ex = value_ex 10 11 self._func = func 11 12 self.active = True … … 15 16 @property 16 17 def value(self): 18 # value/parameter to fit to (e.g. 1.0 or sld) 17 19 return self._value 18 20 … … 22 24 23 25 @property 26 def value_ex(self): 27 # full parameter name to fit to (e.g. M1.sld) 28 return self._value_ex 29 30 @value_ex.setter 31 def value_ex(self, val): 32 self._value_ex = val 33 34 @property 24 35 def param(self): 36 # parameter which is being fitted 25 37 return self._param 26 38 … … 31 43 @property 32 44 def func(self): 45 # Function to be used for constraint 46 # e.g. sqrt(M1.sld+1.0) 33 47 return self._func 34 48 … … 39 53 @property 40 54 def min(self): 55 # min param value for single value constraints 41 56 return self._min 42 57 … … 47 62 @property 48 63 def max(self): 64 # max param value for single value constraints 49 65 return self._max 50 66
Note: See TracChangeset
for help on using the changeset viewer.