Changeset 56f8401 in sasview


Ignore:
Timestamp:
Feb 26, 2010 5:26:56 PM (15 years ago)
Author:
Gervaise Alina <gervyh@…>
Branches:
master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
c128284
Parents:
4d6cce0
Message:

add set method in invariant

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Invariant/invariant.py

    rbdd162f r56f8401  
    357357        self._high_extrapolation_function = PowerLaw() 
    358358        self._high_extrapolation_power = None 
    359          
     359     
     360    def set_data(self, data): 
     361        """ 
     362            the data from where the invariant is computed 
     363        """ 
     364        self._data = data  
     365         
     366    def set_background(self, background=0): 
     367        """ 
     368            given a value to the background 
     369        """ 
     370        self._background = background 
     371         
     372    def set_scale(self, scale=1): 
     373        """ 
     374            Given a value to the scale 
     375        """ 
     376        self._scale = scale 
     377     
    360378    def _get_data(self, data): 
    361379        """ 
Note: See TracChangeset for help on using the changeset viewer.