Changeset 7b68dc5 in sasmodels
- Timestamp:
- Sep 12, 2016 1:31:16 AM (8 years ago)
- Branches:
- master, core_shell_microgels, costrafo411, magnetic_model, release_v0.94, release_v0.95, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
- Children:
- 6592f56
- Parents:
- 7e6bea81
- Location:
- sasmodels/models
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/core_multi_shell.py
r8c6fbbc r7b68dc5 132 132 def ER(radius, n, thickness): 133 133 """Effective radius""" 134 n = n[0]# n cannot be polydisperse134 n = int(n[0]) # n cannot be polydisperse 135 135 return np.sum(thickness[:n], axis=0) + radius 136 136 -
sasmodels/models/onion.py
r3cd1001 r7b68dc5 368 368 def ER(core_radius, n, thickness): 369 369 """Effective radius""" 370 return np.sum(thickness[: n[0]], axis=0) + core_radius370 return np.sum(thickness[:int(n[0])], axis=0) + core_radius 371 371 372 372 demo = {
Note: See TracChangeset
for help on using the changeset viewer.