Changeset 2472141 in sasmodels
- Timestamp:
- Aug 8, 2016 12:02:48 PM (8 years ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/resolution.py
r40a87fa r2472141 562 562 ", ".join(sorted(pars.keys())))) 563 563 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, 566 566 args=(qi, dqi), divmax=100, vec_func=True, 567 567 tol=0, rtol=1e-8) 568 568 for qi, dqi in zip(q, q_width)] 569 return np.asarray( r).flatten()569 return np.asarray(total).flatten() 570 570 571 571
Note: See TracChangeset
for help on using the changeset viewer.