Changeset 765d025 in sasmodels for sasmodels/models/_cylpy.py
- Timestamp:
- Oct 30, 2018 10:05:27 AM (5 years ago)
- Children:
- 646eeaa
- Parents:
- 1662ebe (diff), aa8c6e0 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/_cylpy.py
rc01ed3e r765d025 177 177 return 1.0e-4 * square(s * form) 178 178 179 def ER(radius, length): 180 """ 181 Return equivalent radius (ER) 182 """ 183 ddd = 0.75 * radius * (2 * radius * length + (length + radius) * (length + pi * radius)) 184 return 0.5 * (ddd) ** (1. / 3.) 179 def effective_radius(mode, radius, length): 180 mode = int(mode) 181 if mode == 1: 182 ddd = 0.75 * radius * (2 * radius * length + (length + radius) * (length + pi * radius)) 183 return 0.5 * (ddd) ** (1. / 3.) 184 else: 185 return 0. 185 186 186 187 def random():
Note: See TracChangeset
for help on using the changeset viewer.