Ignore:
Timestamp:
Nov 14, 2018 5:43:28 AM (5 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:
ecc5d043
Parents:
e5ae812
Message:

Added Edit to single page constraint SASVIEW-1043

File:
1 edited

Legend:

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

    r14ec91c5 rbaeac95  
    55    hence made into a class. 
    66    """ 
    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): 
    88        self._value = value 
    99        self._param = param 
     10        self._value_ex = value_ex 
    1011        self._func = func 
    1112        self.active = True 
     
    1516    @property 
    1617    def value(self): 
     18        # value/parameter to fit to (e.g. 1.0 or sld) 
    1719        return self._value 
    1820 
     
    2224 
    2325    @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 
    2435    def param(self): 
     36        # parameter which is being fitted 
    2537        return self._param 
    2638 
     
    3143    @property 
    3244    def func(self): 
     45        # Function to be used for constraint 
     46        # e.g. sqrt(M1.sld+1.0) 
    3347        return self._func 
    3448 
     
    3953    @property 
    4054    def min(self): 
     55        # min param value for single value constraints 
    4156        return self._min 
    4257 
     
    4762    @property 
    4863    def max(self): 
     64        # max param value for single value constraints 
    4965        return self._max 
    5066 
Note: See TracChangeset for help on using the changeset viewer.