Changeset 31df0c9 in sasmodels for sasmodels/models/hollow_rectangular_prism.py
- Timestamp:
- Aug 1, 2017 4:38:47 PM (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:
- 1511c37c
- Parents:
- d49ca5c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/hollow_rectangular_prism.py
rab2aea8 r31df0c9 146 146 147 147 148 def random(): 149 import numpy as np 150 a, b, c = 10**np.random.uniform(1, 4.7, size=3) 151 thickness = np.random.uniform(0.01, 0.49) * min(a, b, c) 152 pars = dict( 153 length_a=a, 154 b2a_ratio=b/a, 155 c2a_ratio=c/a, 156 thickness=thickness, 157 ) 158 return pars 159 160 148 161 # parameters for demo 149 162 demo = dict(scale=1, background=0,
Note: See TracChangeset
for help on using the changeset viewer.