Changeset bbb887d in sasmodels
 Timestamp:
 Jun 7, 2018 3:35:11 PM (4 years ago)
 Branches:
 master, core_shell_microgels, magnetic_model, ticket1257vesicleproduct, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
 Children:
 c11d09f
 Parents:
 2b2d431
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

sasmodels/resolution.py
r2b2d431 rbbb887d 189 189 weights = cdf[1:]  cdf[:1] 190 190 # Limit q range to +/ 2.5 sigma 191 weights[q_calc[:, None] < (q  nsigma*q_width)[None, :]] = 0. 192 weights[q_calc[:, None] > (q + nsigma*q_width)[None, :]] = 0. 191 qhigh = q + nsigma*q_width 192 #qlow = q  nsigma*q_width # linear limits 193 qlow = q*q/qhigh # log limits 194 weights[q_calc[:, None] < qlow[None, :]] = 0. 195 weights[q_calc[:, None] > qhigh[None, :]] = 0. 193 196 weights /= np.sum(weights, axis=0)[None, :] 194 197 return weights
Note: See TracChangeset
for help on using the changeset viewer.