Changeset a2f9aa2 in sasmodels
- Timestamp:
- Mar 21, 2016 10:52:58 AM (9 years ago)
- 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
- Location:
- sasmodels/models
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/linear_pearls.py
r2f0c07d ra2f9aa2 57 57 ["edge_sep", "Ang", 350.0, [0, inf], "", "Length of the string segment - surface to surface"], 58 58 ["num_pearls", "", 3.0, [0, inf], "", "Number of the pearls"], 59 [" pearl_sld", "1e-6/Ang^2", 1.0, [-inf, inf], "", "SLD of the pearl spheres"],60 ["s olvent_sld", "1e-6/Ang^2", 6.3, [-inf, inf], "", "SLD of the solvent"],59 ["sld", "1e-6/Ang^2", 1.0, [-inf, inf], "", "SLD of the pearl spheres"], 60 ["sld_solvent", "1e-6/Ang^2", 6.3, [-inf, inf], "", "SLD of the solvent"], 61 61 ] 62 62 # pylint: enable=bad-whitespace, line-too-long … … 68 68 edge_sep=350.0, 69 69 num_pearls=3, 70 pearl_sld=1.0,71 s olvent_sld=6.3)70 sld=1.0, 71 sld_solvent=6.3) 72 72 73 73 oldname = "LinearPearlsModel" 74 74 75 75 oldpars = dict(edge_sep='edge_separation', 76 pearl_sld='sld_pearl',77 s olvent_sld='sld_solv')76 sld='sld_pearl', 77 sld_solvent='sld_solv') 78 78 79 79 """ … … 84 84 [{'radius': 20.0, 85 85 'num_pearls': 2.0, 86 ' pearl_sld': 1.0,87 's olvent_sld': 6.3,86 'sld': 1.0, 87 'sld_solvent': 6.3, 88 88 'edge_sep': 400.0, 89 89 }, 0.001, 185.135], … … 92 92 [{'radius': 120.0, 93 93 'num_pearls': 5.0, 94 ' pearl_sld': 2.0,95 's olvent_sld': 2.3,94 'sld': 2.0, 95 'sld_solvent': 2.3, 96 96 'edge_sep': 100.0, 97 97 }, 0.01, 45.4984], … … 99 99 [{'radius': 7.0, 100 100 'num_pearls': 2.0, 101 ' pearl_sld': 10.0,102 's olvent_sld': 99.3,101 'sld': 10.0, 102 'sld_solvent': 99.3, 103 103 'edge_sep': 20.0, 104 104 }, 1.0, 0.632811], -
sasmodels/models/pearl_necklace.py
r2f0c07d ra2f9aa2 13 13 ---------- 14 14 15 The output of the scattering intensity function for the PearlNecklaceModelis15 The output of the scattering intensity function for the pearl_necklace is 16 16 given by (Schweins, 2004) 17 17 … … 58 58 59 59 name = "pearl_necklace" 60 title = "Colloidal spheres chained together with o preferential orientation"60 title = "Colloidal spheres chained together with no preferential orientation" 61 61 description = """ 62 62 Calculate form factor for Pearl Necklace Model … … 76 76 77 77 # ["name", "units", default, [lower, upper], "type","description"], 78 parameters = [["radius", "Ang strom", 80.0, [0, inf], "volume",78 parameters = [["radius", "Ang", 80.0, [0, inf], "volume", 79 79 "Mean radius of the chained spheres"], 80 ["edge_separation", "Ang strom", 350.0, [0, inf], "volume",80 ["edge_separation", "Ang", 350.0, [0, inf], "volume", 81 81 "Mean separation of chained particles"], 82 ["string_thickness", "Ang strom", 2.5, [0, inf], "volume",82 ["string_thickness", "Ang", 2.5, [0, inf], "volume", 83 83 "Thickness of the chain linkage"], 84 84 ["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], "", 87 87 "Scattering length density of the chained spheres"], 88 ["s tring_sld", "Angstrom^2", 1.0, [-inf, inf], "",88 ["sld_string", "1e-6/Ang^2", 1.0, [-inf, inf], "", 89 89 "Scattering length density of the chain linkage"], 90 ["s olvent_sld", "Angstrom^2", 6.3, [-inf, inf], "",90 ["sld_solvent", "1e-6/Ang^2", 6.3, [-inf, inf], "", 91 91 "Scattering length density of the solvent"], 92 92 ] … … 117 117 # parameters for demo 118 118 demo = dict(scale=1, background=0, radius=80.0, edge_separation=350.0, 119 number_of_pearls=3, sld=1, s olvent_sld=6.3, string_sld=1,119 number_of_pearls=3, sld=1, sld_solvent=6.3, sld_string=1, 120 120 string_thickness=2.5, 121 121 radius_pd=.2, radius_pd_n=5, … … 129 129 oldname = 'PearlNecklaceModel' 130 130 oldpars = dict(scale='scale', background='background', radius='radius', 131 number_of_pearls='num_pearls', s olvent_sld='sld_solv',131 number_of_pearls='num_pearls', sld_solvent='sld_solv', 132 132 string_thickness='thick_string', sld='sld_pearl', 133 s tring_sld='sld_string', edge_separation='edge_separation')133 sld_string='sld_string', edge_separation='edge_separation') 134 134 135 135 tests = [[{}, 0.001, 17380.245], [{}, 'ER', 115.39502]]
Note: See TracChangeset
for help on using the changeset viewer.