Changeset 26e4a24 in sasview for sansmodels/src/sans/models/test/utest_models.py
- Timestamp:
- Aug 7, 2009 11:24:39 AM (15 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:
- ecc58e72
- Parents:
- 58c6ba6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansmodels/src/sans/models/test/utest_models.py
reba9885 r26e4a24 24 24 def test1D(self): 25 25 """ Test 1D model for a sphere """ 26 self.assertAlmostEqual(self.comp.run(1.0), 5 .6387e-5, 4)26 self.assertAlmostEqual(self.comp.run(1.0), 56.3878, 4) 27 27 28 28 def test1D_2(self): 29 29 """ Test 2D model for a sphere """ 30 self.assertAlmostEqual(self.comp.run([1.0, 1.3]), 5 .63878e-5, 4)30 self.assertAlmostEqual(self.comp.run([1.0, 1.3]), 56.3878, 4) 31 31 32 32 class TestCyl(unittest.TestCase):
Note: See TracChangeset
for help on using the changeset viewer.