Ignore:
Timestamp:
Aug 16, 2009 12:30:27 PM (15 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:
7d11b81
Parents:
b0d0723
Message:

Changed the def. of lengths of sides for 2D,thus consistent w/ 1D. And shortened the names.

File:
1 edited

Legend:

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

    r975ec8e r2cb89e7  
    3333        List of default parameters: 
    3434         scale           = 1.0  
    35          short_edgeA     = 35.0 [A] 
    36          longer_edgeB    = 75.0 [A] 
    37          longuest_edgeC  = 400.0 [A] 
     35         short_a         = 35.0 [A] 
     36         long_b          = 75.0 [A] 
     37         longer_c        = 400.0 [A] 
    3838         contrast        = 5.3e-006 [1/A²] 
    3939         background      = 0.0 [1/cm] 
     
    5454        self.name = "ParallelepipedModel" 
    5555        ## Model description 
    56         self.description =""" Calculates the form factor for a rectangular solid with uniform scattering length density. 
     56        self.description =""" Form factor for a rectangular solid with uniform scattering length density. 
    5757                 
    5858                scale:Scale factor 
    59                 short_edgeA: Shortest edge of the parallelepiped [A] 
    60                 longer_edgeB: Longer edge of the parallelepiped [A] 
    61                 longuest_edgeC: Longuest edge of the parallelepiped [A] 
    62                 constrast: particle_sld - solvent_sld 
     59                short_a: length of short side of the parallelepiped [A] 
     60                long_b: length of long side of the parallelepiped [A] 
     61                longer_c: length of longer side of the parallelepiped [A] 
     62                contrast: particle_sld - solvent_sld 
    6363                background:Incoherent Background [1/cm]""" 
    6464        
     
    6666        self.details = {} 
    6767        self.details['scale'] = ['', None, None] 
    68         self.details['short_edgeA'] = ['[A]', None, None] 
    69         self.details['longer_edgeB'] = ['[A]', None, None] 
    70         self.details['longuest_edgeC'] = ['[A]', None, None] 
     68        self.details['short_a'] = ['[A]', None, None] 
     69        self.details['long_b'] = ['[A]', None, None] 
     70        self.details['longer_c'] = ['[A]', None, None] 
    7171        self.details['contrast'] = ['[1/A²]', None, None] 
    7272        self.details['background'] = ['[1/cm]', None, None] 
     
    7676 
    7777                ## fittable parameters 
    78         self.fixed=['short_edgeA.width', 'longer_edgeB.width', 'longuest_edgeC.width', 'parallel_phi.width', 'parallel_psi.width', 'parallel_theta.width'] 
     78        self.fixed=['short_a.width', 'long_b.width', 'longer_c.width', 'parallel_phi.width', 'parallel_psi.width', 'parallel_theta.width'] 
    7979         
    8080        ## parameters with orientation 
Note: See TracChangeset for help on using the changeset viewer.