Changeset b32caab in sasmodels


Ignore:
Timestamp:
Mar 9, 2017 9:13:20 AM (8 years ago)
Author:
Paul Kienzle <pkienzle@…>
Branches:
master, core_shell_microgels, costrafo411, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
Children:
d38f244
Parents:
355ee8b
Message:

resolution: fix geometric extrapolation to again exclude q_min < 0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/resolution.py

    r355ee8b rb32caab  
    459459        log_delta_q = log(10.) / points_per_decade 
    460460    if q_min < q[0]: 
    461         if q_min < 0: q_min = q[0]*MIN_Q_SCALE_FOR_NEGATIVE_Q_EXTRAPOLATION 
     461        if q_min < 0: q_min = q[0]*MINIMUM_ABSOLUTE_Q 
    462462        n_low = log_delta_q * (log(q[0])-log(q_min)) 
    463463        q_low = np.logspace(log10(q_min), log10(q[0]), np.ceil(n_low)+1)[:-1] 
Note: See TracChangeset for help on using the changeset viewer.