Changeset df0d2ca in sasmodels
- Timestamp:
- May 17, 2018 8:34:09 PM (7 years ago)
- Branches:
- master, core_shell_microgels, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
- Children:
- 87964ac
- Parents:
- 1198f90
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/resolution.py
r1198f90 rdf0d2ca 577 577 578 578 579 def romberg_pinhole_1d(q, q_width, form, pars, nsigma= 5):579 def romberg_pinhole_1d(q, q_width, form, pars, nsigma=2.5): 580 580 """ 581 581 Romberg integration for pinhole resolution. … … 705 705 theory = 12.0-1000.0*resolution.q_calc 706 706 output = resolution.apply(theory) 707 # Note: answer came from output of previous run. Non-integer 708 # values at ends come from the fact that q_calc does not 709 # extend beyond q, and so the weights don't balance. 707 710 answer = [ 708 10.4 4785079, 9.84991299, 8.98101708,709 7.99906585, 6.99998311, 6.00001689,710 5.00093415, 4.01898292, 3.15008701, 2.55214921,711 10.47037734, 9.86925860, 712 9., 8., 7., 6., 5., 4., 713 3.13074140, 2.52962266, 711 714 ] 712 715 np.testing.assert_allclose(output, answer, atol=1e-8) … … 751 754 self._compare(q, output, answer, 1e-6) 752 755 756 @unittest.skip("suppress comparison with old version; pinhole calc changed") 753 757 def test_pinhole(self): 754 758 """ … … 765 769 self._compare(q, output, answer, 3e-4) 766 770 771 @unittest.skip("suppress comparison with old version; pinhole calc changed") 767 772 def test_pinhole_romberg(self): 768 773 """ … … 780 785 # 2*np.pi/pars['radius']/200) 781 786 #tol = 0.001 782 ## The default 3sigma and no extra points gets 1%787 ## The default 2.5 sigma and no extra points gets 1% 783 788 q_calc = None # type: np.ndarray 784 789 tol = 0.01
Note: See TracChangeset
for help on using the changeset viewer.