Changeset 8f04da4 in sasmodels for sasmodels/models/pearl_necklace.py
- Timestamp:
- Aug 2, 2017 2:53:56 AM (7 years ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/pearl_necklace.py
r1bd1ea2 r8f04da4 117 117 return rad_out 118 118 119 def random(): 120 import numpy as np 121 radius = 10**np.random.uniform(1, 3) # 1 - 1000 122 thick_string = 10**np.random.uniform(0, np.log10(radius)-1) # 1 - radius/10 123 edge_sep = 10**np.random.uniform(0, 3) # 1 - 1000 124 num_pearls = np.round(10**np.random.uniform(0.3, 3)) # 2 - 1000 125 pars = dict( 126 radius=radius, 127 edge_sep=edge_sep, 128 thick_string=thick_string, 129 num_pearls=num_pearls, 130 ) 131 return pars 132 119 133 # parameters for demo 120 134 demo = dict(scale=1, background=0, radius=80.0, edge_sep=350.0,
Note: See TracChangeset
for help on using the changeset viewer.