Changeset 777d369 in sasmodels for sasmodels/kernelpy.py
- Timestamp:
- Dec 7, 2016 7:27:21 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:
- 08e2af7
- Parents:
- 26b848d (diff), 447e9aa (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/kernelpy.py
r46d9f48 r777d369 10 10 11 11 import numpy as np # type: ignore 12 from numpy import pi, cos #type: ignore12 from numpy import pi, sin, cos #type: ignore 13 13 14 14 from . import details … … 222 222 partial_weight = np.prod(pd_weight[pd_offset+pd_index][1:]) 223 223 if call_details.theta_par >= 0: 224 cor = cos(pi / 180 * parameters[call_details.theta_par])224 cor = sin(pi / 180 * parameters[call_details.theta_par]) 225 225 spherical_correction = max(abs(cor), 1e-6) 226 226 p0_index = loop_index%p0_length
Note: See TracChangeset
for help on using the changeset viewer.