Changeset 345cc8f in sasmodels for sasmodels/models/fcc_paracrystal.py


Ignore:
Timestamp:
Mar 31, 2019 7:55:49 AM (5 years ago)
Author:
GitHub <noreply@…>
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)
Message:

Merge bd91e8f66b044c54b5d8cb15ae644f1af300e5d2 into 1dd78a2b6501dbd20963af88b80e45c6b89beda5

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/models/fcc_paracrystal.py

    r0507e09 rbd91e8f  
    107107 
    108108Authorship and Verification 
    109 --------------------------- 
     109---------------------------- 
    110110 
    111111* **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 
    115114""" 
    116115 
     
    131130# pylint: disable=bad-whitespace, line-too-long 
    132131#             ["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"], 
     132parameters = [["lattice_spacing", "Ang", 220, [-inf, inf], "", "Lattice spacing"], 
     133              ["lattice_distortion", "", 0.06, [-inf, inf], "", "Paracrystal distortion factor"], 
    135134              ["radius", "Ang", 40, [0, inf], "volume", "Particle radius"], 
    136135              ["sld", "1e-6/Ang^2", 4, [-inf, inf], "sld", "Particle scattering length density"], 
     
    148147    # copied from bcc_paracrystal 
    149148    radius = 10**np.random.uniform(1.3, 4) 
    150     d_factor = 10**np.random.uniform(-2, -0.7)  # sigma_d in 0.01-0.7 
    151     dnn_fraction = np.random.beta(a=10, b=1) 
    152     dnn = radius*4/np.sqrt(2)/dnn_fraction 
     149    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 
    153152    pars = dict( 
    154153        #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, 
    157156        radius=radius, 
    158157    ) 
Note: See TracChangeset for help on using the changeset viewer.