Changeset 0ae0f9a in sasmodels for sasmodels/resolution.py
- Timestamp:
- Oct 8, 2016 1:30:56 PM (8 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:
- eb8a82e
- Parents:
- 0444c02 (diff), 630cdd4 (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/resolution.py
r0444c02 r0ae0f9a 55 55 return theory 56 56 57 58 class SESANS1D(Resolution): 59 60 def __init__(self, data, q_calc): 61 self.data = data 62 self.q_calc = q_calc 63 64 def apply(self, theory): 65 return sesans.transform(self.data, self.q_calc, theory, None, None) 57 66 58 67 class Pinhole1D(Resolution): … … 306 315 weights[i, :] = (in_x + abs_x) * np.diff(q_edges) / (2*h) 307 316 else: 308 for k in range(-n_height, h_height+1):317 for k in range(-n_height, n_height+1): 309 318 weights[i, :] += _q_perp_weights(q_edges, qi+k*h/n_height, w) 310 319 weights[i, :] /= 2*n_height + 1
Note: See TracChangeset
for help on using the changeset viewer.