Changeset bbb887d in sasmodels
 Timestamp:
 Jun 7, 2018 3:35:11 PM (5 months ago)
 Branches:
 master, F1F2models_grethe, beta_approx, cudatest, py3, ticket1074gammainc, ticket1084, ticket1102pinhole, ticket1142pluginreload, ticket1155BE_PolyElectrolyte, ticket1157, ticket608userdefinedweights, ticket_1156
 Children:
 184f205, 7420664
 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.