Changeset 9ce41c6 in sasview for sansmodels/src/sans/models/test


Ignore:
Timestamp:
Sep 9, 2009 5:06:42 PM (15 years ago)
Author:
Gervaise Alina <gervyh@…>
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
Message:

wrote unittest for all model untested , haven' test critial point error handling

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  
    2222      0.21   0.352447    0.35239 
    2323      0.22   0.318321   0.319034 
    24       0.23   0.286235    0.28683 
    25       0.24   0.253276   0.253296 
    26       0.25   0.215823   0.216689 
    27       0.26   0.175608   0.176596 
    28       0.27   0.142021   0.141555 
    29       0.28   0.117013   0.115955 
    30       0.29   0.097918  0.0978735 
    31        0.3  0.0857748  0.0869363 
    32       0.31  0.0797341  0.0810271 
    33       0.32  0.0751376   0.075475 
    34       0.33   0.069484  0.0688126 
    35       0.34  0.0623802  0.0614295 
    36       0.35  0.0534721  0.0530275 
    37       0.36  0.0443903  0.0448143 
    38       0.37  0.0376499  0.0384918 
    39       0.38  0.0332545  0.0339966 
    40       0.39   0.030798   0.031047 
  • sansmodels/src/sans/models/test/utest_models.py

    r26e4a24 r9ce41c6  
    2424    def test1D(self): 
    2525        """ Test 1D model for a sphere """ 
    26         self.assertAlmostEqual(self.comp.run(1.0), 56.3878, 4) 
     26        self.assertAlmostEqual(self.comp.run(1.0), 5.6387e-5, 4) 
    2727         
    2828    def test1D_2(self): 
    2929        """ Test 2D model for a sphere """ 
    30         self.assertAlmostEqual(self.comp.run([1.0, 1.3]), 56.3878, 4) 
     30        self.assertAlmostEqual(self.comp.run([1.0, 1.3]), 5.6387e-5, 4) 
    3131 
    3232class TestCyl(unittest.TestCase): 
Note: See TracChangeset for help on using the changeset viewer.