Changeset bbb887d in sasmodels


Ignore:
Timestamp:
Jun 7, 2018 3:35:11 PM (12 months ago)
Author:
Paul Kienzle <pkienzle@…>
Branches:
master, core_shell_microgels, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
Children:
c11d09f
Parents:
2b2d431
Message:

define lower q limit equal to upper q limit with log spacing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/resolution.py

    r2b2d431 rbbb887d  
    189189    weights = cdf[1:] - cdf[:-1] 
    190190    # 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. 
    193196    weights /= np.sum(weights, axis=0)[None, :] 
    194197    return weights 
Note: See TracChangeset for help on using the changeset viewer.