Changeset 8f04da4 in sasmodels for sasmodels/models/core_shell_cylinder.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/core_shell_cylinder.py
r9b79f29 r8f04da4 142 142 return whole, whole - core 143 143 144 def random(): 145 import numpy as np 146 outer_radius = 10**np.random.uniform(1, 4.7) 147 # Use a distribution with a preference for thin shell or thin core 148 # Avoid core,shell radii < 1 149 radius = np.random.beta(0.5, 0.5)*(outer_radius-2) + 1 150 thickness = outer_radius - core 151 length = np.random.uniform(1, 4.7) 152 pars = dict( 153 radius=radius, 154 thickness=thickness, 155 length=length, 156 ) 157 return pars 158 144 159 demo = dict(scale=1, background=0, 145 160 sld_core=6, sld_shell=8, sld_solvent=1,
Note: See TracChangeset
for help on using the changeset viewer.