Changeset 386ffe1 in sasview for test/park_integration/test/utest_fit_smeared.py
- Timestamp:
- Feb 20, 2015 3:02:38 AM (9 years ago)
- Branches:
- master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- cda1cf8
- Parents:
- 018582f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
test/park_integration/test/utest_fit_smeared.py
r35ec279 r386ffe1 17 17 """ test fitting """ 18 18 19 def test_ scipy(self):20 """ Simple cylinder model fit (scipy)"""19 def test_without_resolution(self): 20 """ Simple cylinder model fit """ 21 21 22 22 out=Loader().load("cyl_400_20.txt") … … 24 24 #out.dy = out.y 25 25 26 fitter = Fit(' scipy')26 fitter = Fit('bumps') 27 27 fitter.set_data(out,1) 28 28 … … 53 53 self.assertTrue( result1.fitness < 1.0 ) 54 54 55 def test_park_dispersion(self): 56 """ 57 Cylinder fit with dispersion 58 """ 59 self._dispersion(fitter = Fit('park')) 60 61 def test_bumps_dispersion(self): 55 def test_dispersion(self): 62 56 """ 63 57 Cylinder fit with dispersion … … 69 63 fitters.FIT_OPTIONS[alg].options.update(monitors=[]) 70 64 self._dispersion(fitter = Fit('bumps')) 71 72 def test_scipy_dispersion(self):73 """74 Cylinder fit with dispersion75 """76 self._dispersion(fitter = Fit('scipy'))77 65 78 66 def _dispersion(self, fitter): … … 148 136 149 137 # Fit 150 fitter = Fit(' scipy')138 fitter = Fit('bumps') 151 139 152 140 # Data: right now this is the only way to set the smearer object … … 179 167 self.assertEqual(smear.__class__.__name__, 'SlitSmearer') 180 168 181 fitter = Fit(' scipy')169 fitter = Fit('bumps') 182 170 183 171 # Data: right now this is the only way to set the smearer object
Note: See TracChangeset
for help on using the changeset viewer.