Changeset cc8b183 in sasmodels for sasmodels/models/fcc_paracrystal.py
- Timestamp:
- Nov 9, 2018 2:12:05 PM (5 years ago)
- Branches:
- ticket_1156
- Children:
- f752b9b
- Parents:
- b3f4831 (diff), cf3d0ce (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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/fcc_paracrystal.py
rda7b26b rb3f4831 3 3 #note - calculation requires double precision 4 4 r""" 5 .. warning:: This model and this model description are under review following 6 concerns raised by SasView users. If you need to use this model, 7 please email help@sasview.org for the latest situation. *The 5 .. warning:: This model and this model description are under review following 6 concerns raised by SasView users. If you need to use this model, 7 please email help@sasview.org for the latest situation. *The 8 8 SasView Developers. September 2018.* 9 9 … … 100 100 101 101 Authorship and Verification 102 --------------------------- 102 ---------------------------- 103 103 104 104 * **Author:** NIST IGOR/DANSE **Date:** pre 2010 105 * **Last Modified by:** Paul Butler **Date:** September 29, 2016106 * **Last Reviewed by:** Richard Heenan **Date:** March 21, 2016105 * **Last Modified by:** Paul Butler **Date:** September 16, 2018 106 * **Last Reviewed by:** Paul Butler **Date:** September 16, 2018 107 107 """ 108 108 … … 123 123 # pylint: disable=bad-whitespace, line-too-long 124 124 # ["name", "units", default, [lower, upper], "type","description"], 125 parameters = [[" dnn", "Ang", 220, [-inf, inf], "", "Nearest neighbour distance"],126 [" d_factor", "", 0.06, [-inf, inf], "", "Paracrystal distortion factor"],125 parameters = [["lattice_spacing", "Ang", 220, [-inf, inf], "", "Lattice spacing"], 126 ["lattice_distortion", "", 0.06, [-inf, inf], "", "Paracrystal distortion factor"], 127 127 ["radius", "Ang", 40, [0, inf], "volume", "Particle radius"], 128 128 ["sld", "1e-6/Ang^2", 4, [-inf, inf], "sld", "Particle scattering length density"], … … 139 139 # copied from bcc_paracrystal 140 140 radius = 10**np.random.uniform(1.3, 4) 141 d_factor= 10**np.random.uniform(-2, -0.7) # sigma_d in 0.01-0.7142 dnn_fraction = np.random.beta(a=10, b=1)143 dnn = radius*4/np.sqrt(2)/dnn_fraction141 lattice_distortion = 10**np.random.uniform(-2, -0.7) # sigma_d in 0.01-0.7 142 lattice_spacing_fraction = np.random.beta(a=10, b=1) 143 lattice_spacing = radius*4/np.sqrt(2)/lattice_spacing_fraction 144 144 pars = dict( 145 145 #sld=1, sld_solvent=0, scale=1, background=1e-32, 146 dnn=dnn,147 d_factor=d_factor,146 latice_spacing=lattice_spacing, 147 lattice_distortion=d_factor, 148 148 radius=radius, 149 149 )
Note: See TracChangeset
for help on using the changeset viewer.