Changeset 0d6e865 in sasmodels for sasmodels/kernelpy.py
- Timestamp:
- Oct 11, 2016 11:42:00 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:
- 1fdb555
- Parents:
- 19e7ca7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/kernelpy.py
r14a15a3 r0d6e865 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 … … 220 220 partial_weight = np.prod(pd_weight[pd_offset+pd_index][1:]) 221 221 if call_details.theta_par >= 0: 222 cor = cos(pi / 180 * parameters[call_details.theta_par])222 cor = sin(pi / 180 * parameters[call_details.theta_par]) 223 223 spherical_correction = max(abs(cor), 1e-6) 224 224 p0_index = loop_index%p0_length
Note: See TracChangeset
for help on using the changeset viewer.