Changeset 2472141 in sasmodels


Ignore:
Timestamp:
Aug 8, 2016 12:02:48 PM (8 years ago)
Author:
Paul Kienzle <pkienzle@…>
Branches:
master, core_shell_microgels, costrafo411, magnetic_model, release_v0.94, release_v0.95, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
Children:
9457498
Parents:
40a87fa
Message:

fix error introduced during linting

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/resolution.py

    r40a87fa r2472141  
    562562                            ", ".join(sorted(pars.keys())))) 
    563563 
    564     _fn = lambda q, q0, dq: eval_form(q, form, pars)*gaussian(q, q0, dq) 
    565     total = [romberg(_fn, max(qi-nsigma*dqi, 1e-10*q[0]), qi+nsigma*dqi, 
     564    func = lambda q, q0, dq: eval_form(q, form, pars)*gaussian(q, q0, dq) 
     565    total = [romberg(func, max(qi-nsigma*dqi, 1e-10*q[0]), qi+nsigma*dqi, 
    566566                     args=(qi, dqi), divmax=100, vec_func=True, 
    567567                     tol=0, rtol=1e-8) 
    568568             for qi, dqi in zip(q, q_width)] 
    569     return np.asarray(r).flatten() 
     569    return np.asarray(total).flatten() 
    570570 
    571571 
Note: See TracChangeset for help on using the changeset viewer.