Changeset 404ebbd in sasmodels for sasmodels/models/lamellar_stack_caille.py
- Timestamp:
- Jul 30, 2017 12:56:22 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:
- 48462b0
- Parents:
- a151caa
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/lamellar_stack_caille.py
ra57b31d r404ebbd 98 98 source = ["lamellar_stack_caille.c"] 99 99 100 def random(): 101 import numpy as np 102 total_thickness = 10**np.random.uniform(2, 4.7) 103 Nlayers = np.random.randint(2, 200) 104 d_spacing = total_thickness / Nlayers 105 thickness = d_spacing * np.random.uniform(0, 1) 106 Caille_parameter = np.random.uniform(0, 0.8) 107 scale = thickness * 10**np.random.uniform(-7, -4) 108 pars = dict( 109 scale=1, 110 thickness=thickness, 111 Nlayers=Nlayers, 112 d_spacing=d_spacing, 113 Caille_parameter=Caille_parameter, 114 ) 115 return pars 116 100 117 # No volume normalization despite having a volume parameter 101 118 # This should perhaps be volume normalized?
Note: See TracChangeset
for help on using the changeset viewer.