Changeset 1511c37c in sasmodels for sasmodels/models/core_multi_shell.py


Ignore:
Timestamp:
Aug 1, 2017 3:29:07 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:
8f04da4
Parents:
31df0c9
Message:

tuned random model generation for more models

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/models/core_multi_shell.py

    ra151caa r1511c37c  
    109109    thickness = np.random.exponential(size=num_shells+1) 
    110110    thickness *= total_radius/np.sum(thickness) 
    111     volume_fraction = 10**np.random.uniform(-4, -1) 
    112111    pars = dict( 
    113112        #background=0, 
    114         scale=volume_fraction/total_radius**3*1e10, 
    115113        n=num_shells, 
    116114        radius=thickness[0], 
Note: See TracChangeset for help on using the changeset viewer.