Changeset bbb887d in sasmodels
 Timestamp:
 Jun 7, 2018 3:35:11 PM (3 months ago)
 Branches:
 master, ESS_GUI, beta_approx, beta_approx_lazy_results, beta_approx_new_R_eff, doc_update, ticket1102pinhole, ticket1104resolution, ticket1112, ticket1142pluginreload, ticket1148Sqscalebackground, ticket608userdefinedweights
 Children:
 c9fc873, 184f205
 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.