Changeset 31df0c9 in sasmodels for sasmodels/models/ellipsoid.py


Ignore:
Timestamp:
Aug 1, 2017 4:38:47 PM (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:
1511c37c
Parents:
d49ca5c
Message:

tuned random model generation for more models

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/models/ellipsoid.py

    r404ebbd r31df0c9  
    184184def random(): 
    185185    import numpy as np 
    186     V = 10**np.random.uniform(4, 12) 
     186    V = 10**np.random.uniform(5, 12) 
    187187    radius_polar = 10**np.random.uniform(1.3, 4) 
    188188    radius_equatorial = np.sqrt(V/radius_polar) # ignore 4/3 pi 
    189     Vf = 10**np.random.uniform(-4, -2) 
    190189    pars = dict( 
    191190        #background=0, sld=0, sld_solvent=1, 
    192         scale=1e9*Vf/V, 
    193191        radius_polar=radius_polar, 
    194192        radius_equatorial=radius_equatorial, 
Note: See TracChangeset for help on using the changeset viewer.