Ignore:
Timestamp:
Apr 16, 2009 4:37:39 PM (16 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:
fca9cbd9
Parents:
3fef0a8
Message:

unit symbol Angst. back to A and re-organized model descriptions

File:
1 edited

Legend:

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

    r0824909 r1ed3834  
    3333        List of default parameters: 
    3434         scale           = 1.0  
    35          radius          = 60.0 [Å] 
    36          contrast        = 1e-006 [1/Ų] 
     35         radius          = 60.0 [A] 
     36         contrast        = 1e-006 [1/A²] 
    3737         background      = 0.0 [1/cm] 
    3838 
     
    4949        self.name = "SphereModel" 
    5050        ## Model description 
    51         self.description ="""P(q)=(scale/V) 
    52                 *[3V(scatter_sld-solvent_sld)*(sin(qR)-qRcos(qR))/(qR)^3]^(2) 
    53                 +bkg 
    54                 bkg: background level 
    55                 R: radius of the sphere 
     51        self.description ="""P(q)=(scale/V)*[3V(scatter_sld-solvent_sld)*(sin(qR)-qRcos(qR)) 
     52                /(qR)^3]^(2)+bkg 
     53                 
     54                bkg:background, R: radius of sphere 
    5655                V:The volume of the scatter 
    57                 scatter_sld: the scattering length density of the scatter 
    58                 solvent_sld: the scattering length density of the solvent""" 
     56                contrast:SLD difference between 
     57                scatter and solvent 
     58                scatter_sld: the SLD of the scatter 
     59                solvent_sld: the SLD of the solvent 
     60                """ 
    5961        
    6062                ## Parameter details [units, min, max] 
    6163        self.details = {} 
    6264        self.details['scale'] = ['', None, None] 
    63         self.details['radius'] = ['[Å]', None, None] 
    64         self.details['contrast'] = ['[1/Ų]', None, None] 
     65        self.details['radius'] = ['[A]', None, None] 
     66        self.details['contrast'] = ['[1/A²]', None, None] 
    6567        self.details['background'] = ['[1/cm]', None, None] 
    6668 
Note: See TracChangeset for help on using the changeset viewer.