Changeset 108e70e in sasmodels for sasmodels/details.py
- Timestamp:
- Dec 14, 2017 3:08:45 PM (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:
- ef85a09
- Parents:
- df69efa
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/details.py
r2d81cfe r108e70e 258 258 # type: (...) -> Sequence[np.ndarray] 259 259 """ 260 **Deprecated** Theta weights will be computed in the kernel wrapper if 261 they are needed. 262 260 263 If there is a theta parameter, update the weights of that parameter so that 261 264 the cosine weighting required for polar integration is preserved. … … 272 275 Returns updated weights vectors 273 276 """ 274 # TODO: explain in a comment why scale and background are missing275 277 # Apparently the parameters.theta_offset similarly skips scale and 276 278 # and background, so the indexing works out, but they are still shipped … … 279 281 index = parameters.theta_offset 280 282 theta = dispersity[index] 281 # TODO: modify the dispersity vector to avoid the theta=-90,90,270,...282 283 theta_weight = abs(cos(radians(theta))) 283 284 weights = tuple(theta_weight*w if k == index else w
Note: See TracChangeset
for help on using the changeset viewer.