Changeset 8f04da4 in sasmodels for sasmodels/models/fcc_paracrystal.py


Ignore:
Timestamp:
Aug 2, 2017 2:53:56 AM (7 years ago)
Author:
Paul Kienzle <pkienzle@…>
Branches:
master, core_shell_microgels, costrafo411, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
Children:
bd21b12
Parents:
1511c37c
Message:

tuned random model generation for more models

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/models/fcc_paracrystal.py

    r1511c37c r8f04da4  
    125125    d_factor = 10**np.random.uniform(-2, -0.7)  # sigma_d in 0.01-0.7 
    126126    dnn_fraction = np.random.beta(a=10, b=1) 
    127     dnn = radius*4/np.sqrt(3)/dnn_fraction 
     127    dnn = radius*4/np.sqrt(2)/dnn_fraction 
    128128    pars = dict( 
    129129        #sld=1, sld_solvent=0, scale=1, background=1e-32, 
     
    135135 
    136136# april 10 2017, rkh add unit tests, NOT compared with any other calc method, assume correct! 
    137 q =4.*pi/220. 
     137q = 4.*pi/220. 
    138138tests = [ 
    139     [{ }, 
    140      [0.001, q, 0.215268], [0.275164706668, 5.7776842567, 0.00958167119232]], 
    141      [{}, (-0.047, -0.007), 238.103096286 ], 
    142      [{}, (0.053, 0.063), 0.863609587796 ], 
     139    [{}, [0.001, q, 0.215268], [0.275164706668, 5.7776842567, 0.00958167119232]], 
     140    [{}, (-0.047, -0.007), 238.103096286], 
     141    [{}, (0.053, 0.063), 0.863609587796], 
    143142] 
Note: See TracChangeset for help on using the changeset viewer.