Changeset 345cc8f in sasmodels for sasmodels/models/fcc_paracrystal.py
- Timestamp:
- Mar 31, 2019 7:55:49 AM (5 years ago)
- Parents:
- 1dd78a2b (diff), bd91e8f (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent. - git-author:
- Paul Kienzle <pkienzle@…> (03/31/19 07:55:49)
- git-committer:
- GitHub <noreply@…> (03/31/19 07:55:49)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/fcc_paracrystal.py
r0507e09 rbd91e8f 107 107 108 108 Authorship and Verification 109 --------------------------- 109 ---------------------------- 110 110 111 111 * **Author:** NIST IGOR/DANSE **Date:** pre 2010 112 * **Last Modified by:** Paul Butler **Date:** September 29, 2016 113 * **Last Reviewed by:** Richard Heenan **Date:** March 21, 2016 114 * **Source added by :** Steve King **Date:** March 25, 2019 112 * **Last Modified by:** Paul Butler **Date:** September 16, 2018 113 * **Last Reviewed by:** Paul Butler **Date:** September 16, 2018 115 114 """ 116 115 … … 131 130 # pylint: disable=bad-whitespace, line-too-long 132 131 # ["name", "units", default, [lower, upper], "type","description"], 133 parameters = [[" dnn", "Ang", 220, [-inf, inf], "", "Nearest neighbour distance"],134 [" d_factor", "", 0.06, [-inf, inf], "", "Paracrystal distortion factor"],132 parameters = [["lattice_spacing", "Ang", 220, [-inf, inf], "", "Lattice spacing"], 133 ["lattice_distortion", "", 0.06, [-inf, inf], "", "Paracrystal distortion factor"], 135 134 ["radius", "Ang", 40, [0, inf], "volume", "Particle radius"], 136 135 ["sld", "1e-6/Ang^2", 4, [-inf, inf], "sld", "Particle scattering length density"], … … 148 147 # copied from bcc_paracrystal 149 148 radius = 10**np.random.uniform(1.3, 4) 150 d_factor= 10**np.random.uniform(-2, -0.7) # sigma_d in 0.01-0.7151 dnn_fraction = np.random.beta(a=10, b=1)152 dnn = radius*4/np.sqrt(2)/dnn_fraction149 lattice_distortion = 10**np.random.uniform(-2, -0.7) # sigma_d in 0.01-0.7 150 lattice_spacing_fraction = np.random.beta(a=10, b=1) 151 lattice_spacing = radius*4/np.sqrt(2)/lattice_spacing_fraction 153 152 pars = dict( 154 153 #sld=1, sld_solvent=0, scale=1, background=1e-32, 155 dnn=dnn,156 d_factor=d_factor,154 latice_spacing=lattice_spacing, 155 lattice_distortion=d_factor, 157 156 radius=radius, 158 157 )
Note: See TracChangeset
for help on using the changeset viewer.