Changeset 0145a25 in sasview for sansmodels/src/sans


Ignore:
Timestamp:
Jun 29, 2011 5:10:42 PM (13 years ago)
Author:
Jae Cho <jhjcho@…>
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:
6694604
Parents:
d5c2f4d
Message:

minor changes for plot labeling

Location:
sansmodels/src/sans/models
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • sansmodels/src/sans/models/BaseComponent.py

    r35aface r0145a25  
    4141        ## store dispersity reference 
    4242        self._persistency_dict = {} 
    43             
     43        ## independent parameter name and unit [string] 
     44        self.input_name = "Q" 
     45        self.input_unit = "A^{-1}" 
     46        ## output name and unit  [string] 
     47        self.output_name = "Intensity" 
     48        self.output_unit = "cm^{-1}" 
     49         
    4450    def __str__(self): 
    4551        """  
  • sansmodels/src/sans/models/ReflectivityIIModel.py

    rd6da3b1 r0145a25  
    5555        # [str(name of function0),...], [str(x-asix name of sld),...]] 
    5656        self.multiplicity_info = [max_nshells,"No. of Layers:",[],['Depth']] 
    57          
     57        ## independent parameter name and unit [string] 
     58        self.input_name = "Q" 
     59        self.input_unit = "A^{-1}" 
     60        ## output name and unit  [string] 
     61        self.output_name = "Reflectivity" 
     62        self.output_unit = "" 
     63    
    5864     
    5965    def _clone(self, obj): 
  • sansmodels/src/sans/models/ReflectivityModel.py

    r4b3d25b r0145a25  
    5353        # [str(name of function0),...], [str(x-asix name of sld),...]] 
    5454        self.multiplicity_info = [max_nshells,"No. of Layers:",[],['Depth']] 
    55  
     55        ## independent parameter name and unit [string] 
     56        self.input_name = "Q" 
     57        self.input_unit = "A^{-1}" 
     58        ## output name and unit  [string] 
     59        self.output_name = "Reflectivity" 
     60        self.output_unit = "" 
    5661     
    5762    def _clone(self, obj): 
Note: See TracChangeset for help on using the changeset viewer.