Changeset a2f9aa2 in sasmodels for sasmodels/models/pearl_necklace.py


Ignore:
Timestamp:
Mar 21, 2016 10:52:58 AM (8 years ago)
Author:
richardh
Branches:
master, core_shell_microgels, costrafo411, magnetic_model, release_v0.94, release_v0.95, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
Children:
7874e80
Parents:
95441ff
Message:

rename sld, check docs etc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/models/pearl_necklace.py

    r2f0c07d ra2f9aa2  
    1313---------- 
    1414 
    15 The output of the scattering intensity function for the PearlNecklaceModel is 
     15The output of the scattering intensity function for the pearl_necklace is 
    1616given by (Schweins, 2004) 
    1717 
     
    5858 
    5959name = "pearl_necklace" 
    60 title = "Colloidal spheres chained together with o preferential orientation" 
     60title = "Colloidal spheres chained together with no preferential orientation" 
    6161description = """ 
    6262Calculate form factor for Pearl Necklace Model 
     
    7676 
    7777#             ["name", "units", default, [lower, upper], "type","description"], 
    78 parameters = [["radius", "Angstrom", 80.0, [0, inf], "volume", 
     78parameters = [["radius", "Ang", 80.0, [0, inf], "volume", 
    7979               "Mean radius of the chained spheres"], 
    80               ["edge_separation", "Angstrom", 350.0, [0, inf], "volume", 
     80              ["edge_separation", "Ang", 350.0, [0, inf], "volume", 
    8181               "Mean separation of chained particles"], 
    82               ["string_thickness", "Angstrom", 2.5, [0, inf], "volume", 
     82              ["string_thickness", "Ang", 2.5, [0, inf], "volume", 
    8383               "Thickness of the chain linkage"], 
    8484              ["number_of_pearls", "none", 3, [0, inf], "volume", 
    85                "Mean number of pearls in each necklace"], 
    86               ["sld", "Angstrom^2", 1.0, [-inf, inf], "", 
     85               "Number of pearls in the necklace (must be integer)"], 
     86              ["sld", "1e-6/Ang^2", 1.0, [-inf, inf], "", 
    8787               "Scattering length density of the chained spheres"], 
    88               ["string_sld", "Angstrom^2", 1.0, [-inf, inf], "", 
     88              ["sld_string", "1e-6/Ang^2", 1.0, [-inf, inf], "", 
    8989               "Scattering length density of the chain linkage"], 
    90               ["solvent_sld", "Angstrom^2", 6.3, [-inf, inf], "", 
     90              ["sld_solvent", "1e-6/Ang^2", 6.3, [-inf, inf], "", 
    9191               "Scattering length density of the solvent"], 
    9292             ] 
     
    117117# parameters for demo 
    118118demo = dict(scale=1, background=0, radius=80.0, edge_separation=350.0, 
    119             number_of_pearls=3, sld=1, solvent_sld=6.3, string_sld=1, 
     119            number_of_pearls=3, sld=1, sld_solvent=6.3, sld_string=1, 
    120120            string_thickness=2.5, 
    121121            radius_pd=.2, radius_pd_n=5, 
     
    129129oldname = 'PearlNecklaceModel' 
    130130oldpars = dict(scale='scale', background='background', radius='radius', 
    131                number_of_pearls='num_pearls', solvent_sld='sld_solv', 
     131               number_of_pearls='num_pearls', sld_solvent='sld_solv', 
    132132               string_thickness='thick_string', sld='sld_pearl', 
    133                string_sld='sld_string', edge_separation='edge_separation') 
     133               sld_string='sld_string', edge_separation='edge_separation') 
    134134 
    135135tests = [[{}, 0.001, 17380.245], [{}, 'ER', 115.39502]] 
Note: See TracChangeset for help on using the changeset viewer.