Changeset 9ce41c6 in sasview for sansmodels/src/sans/models/test
- Timestamp:
- Sep 9, 2009 5:06:42 PM (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:
- 3b865c1
- Parents:
- d2caa18
- Location:
- sansmodels/src/sans/models/test
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sansmodels/src/sans/models/test/TriaxialEllipsoidModel_avg.txt
r861a2d3 r9ce41c6 22 22 0.21 0.352447 0.35239 23 23 0.22 0.318321 0.319034 24 0.23 0.286235 0.2868325 0.24 0.253276 0.25329626 0.25 0.215823 0.21668927 0.26 0.175608 0.17659628 0.27 0.142021 0.14155529 0.28 0.117013 0.11595530 0.29 0.097918 0.097873531 0.3 0.0857748 0.086936332 0.31 0.0797341 0.081027133 0.32 0.0751376 0.07547534 0.33 0.069484 0.068812635 0.34 0.0623802 0.061429536 0.35 0.0534721 0.053027537 0.36 0.0443903 0.044814338 0.37 0.0376499 0.038491839 0.38 0.0332545 0.033996640 0.39 0.030798 0.031047 -
sansmodels/src/sans/models/test/utest_models.py
r26e4a24 r9ce41c6 24 24 def test1D(self): 25 25 """ Test 1D model for a sphere """ 26 self.assertAlmostEqual(self.comp.run(1.0), 5 6.3878, 4)26 self.assertAlmostEqual(self.comp.run(1.0), 5.6387e-5, 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 6.3878, 4)30 self.assertAlmostEqual(self.comp.run([1.0, 1.3]), 5.6387e-5, 4) 31 31 32 32 class TestCyl(unittest.TestCase):
Note: See TracChangeset
for help on using the changeset viewer.