Changeset d277229 in sasmodels for sasmodels/models/core_multi_shell.py
- Timestamp:
- Sep 7, 2018 5:29:38 AM (6 years ago)
- Branches:
- master, core_shell_microgels, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
- Children:
- 3c60146
- Parents:
- 2a12351b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/core_multi_shell.py
r71b751d rd277229 100 100 source = ["lib/sas_3j1x_x.c", "core_multi_shell.c"] 101 101 have_Fq = True 102 effective_radius_type = ["outer radius", "core radius"] 102 103 103 104 def random(): … … 144 145 return np.asarray(z), np.asarray(rho) 145 146 146 def ER(radius, n, thickness):147 """Effective radius"""148 n = int(n[0]+0.5) # n is a control parameter and is not polydisperse149 return np.sum(thickness[:n], axis=0) + radius147 #def ER(radius, n, thickness): 148 # """Effective radius""" 149 # n = int(n[0]+0.5) # n is a control parameter and is not polydisperse 150 # return np.sum(thickness[:n], axis=0) + radius 150 151 151 152 demo = dict(sld_core=6.4,
Note: See TracChangeset
for help on using the changeset viewer.