Changeset 8f04da4 in sasmodels for sasmodels/models/stickyhardsphere.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/stickyhardsphere.py

    r40a87fa r8f04da4  
    9898    ] 
    9999 
     100def random(): 
     101    import numpy as np 
     102    pars = dict( 
     103        scale=1, background=0, 
     104        radius_effective=10**np.random.uniform(1, 4.7), 
     105        volfraction=np.random.uniform(0.00001, 0.74), 
     106        perturb=10**np.random.uniform(-2, -1), 
     107        stickiness=np.random.uniform(0, 1), 
     108    ) 
     109    return pars 
     110 
    100111# No volume normalization despite having a volume parameter 
    101112# This should perhaps be volume normalized? 
Note: See TracChangeset for help on using the changeset viewer.