Ignore:
Timestamp:
Oct 12, 2010 4:22:08 PM (14 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:
20f00bed
Parents:
aaad3098
Message:

added some models and tests

File:
1 edited

Legend:

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

    r35aface r339ce67  
    3838         n_shells        = 1.0  
    3939         scale           = 1.0  
    40          rad_core        = 200.0 [A] 
    41          sld_core        = 1e-006 [1/A^(2)] 
     40         rad_core0       = 200.0 [A] 
     41         sld_core0       = 1e-006 [1/A^(2)] 
    4242         sld_solv        = 6.4e-006 [1/A^(2)] 
    4343         background      = 0.0 [1/cm] 
     
    122122                 
    123123                background:background, 
    124                 rad_core: radius of sphere(core) 
     124                rad_core0: radius of sphere(core) 
    125125                thick_shell#:the thickness of the shell# 
    126                 sld_core: the SLD of the sphere 
     126                sld_core0: the SLD of the sphere 
    127127                sld_solv: the SLD of the solvent 
    128128                sld_shell: the SLD of the shell# 
     
    133133        self.details['n_shells'] = ['', None, None] 
    134134        self.details['scale'] = ['', None, None] 
    135         self.details['rad_core'] = ['[A]', None, None] 
    136         self.details['sld_core'] = ['[1/A^(2)]', None, None] 
     135        self.details['rad_core0'] = ['[A]', None, None] 
     136        self.details['sld_core0'] = ['[1/A^(2)]', None, None] 
    137137        self.details['sld_solv'] = ['[1/A^(2)]', None, None] 
    138138        self.details['background'] = ['[1/cm]', None, None] 
     
    189189 
    190190        ## fittable parameters 
    191         self.fixed=['rad_core.width', 'thick_shell1.width', 'thick_shell2.width', 'thick_shell3.width', 'thick_shell4.width', 'thick_shell5.width', 'thick_shell6.width', 'thick_shell7.width', 'thick_shell8.width', 'thick_shell9.width', 'thick_shell10.width'] 
     191        self.fixed=['rad_core0.width', 'thick_shell1.width', 'thick_shell2.width', 'thick_shell3.width', 'thick_shell4.width', 'thick_shell5.width', 'thick_shell6.width', 'thick_shell7.width', 'thick_shell8.width', 'thick_shell9.width', 'thick_shell10.width'] 
    192192         
    193193        ## non-fittable parameters 
Note: See TracChangeset for help on using the changeset viewer.