Ignore:
Timestamp:
Nov 16, 2018 3:05:20 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:
09e0c32
Parents:
baeac95
Message:

Reworked the complex constraint functionality SASVIEW-1019

File:
1 edited

Legend:

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

    rbaeac95 recc5d043  
    55    hence made into a class. 
    66    """ 
    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="="): 
    810        self._value = value 
    911        self._param = param 
     
    1315        self._min = min 
    1416        self._max = max 
     17        self._operator = operator 
    1518 
    1619    @property 
     
    6972        self._max = val 
    7073 
     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.