Changeset 277aab4e in sasview


Ignore:
Timestamp:
Jan 8, 2010 2:06:53 PM (15 years ago)
Author:
Jae Cho <jhjcho@…>
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:
b345c45
Parents:
2db1d66
Message:

updated the test values of S more accurate, now passes all test

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Invariant/test/utest_use_cases.py

    r4d270706 r277aab4e  
    77from DataLoader.loader import  Loader 
    88from sans.invariant import invariant 
    9 _ERR_SURFACE = 0.3 
    109 
    1110class Data1D: 
     
    130129        self.assertAlmostEquals(qstar, 7.48959e-5,2) 
    131130        self.assertAlmostEquals(v, 0.005644689, 4) 
    132         self.assertAlmostEquals(s + _ERR_SURFACE, 9.42e+2, 1) 
     131        self.assertAlmostEquals(s , 941.7452, 3) 
    133132         
    134133    def test_use_case_2(self): 
     
    151150        self.assertAlmostEquals(qstar, 7.48959e-5,2) 
    152151        self.assertAlmostEquals(v, 0.005644689, 1) 
    153         self.assertAlmostEquals(s + _ERR_SURFACE, 9.42e+2, 1) 
     152        self.assertAlmostEquals(s , 941.7452, 3) 
    154153        
    155154         
     
    187186        self.assertAlmostEquals(qstar, 7.49e-5, 1) 
    188187        self.assertAlmostEquals(v, 0.005648401, 4) 
    189         self.assertAlmostEquals(s + _ERR_SURFACE, 9.42e+2, 1) 
     188        self.assertAlmostEquals(s , 941.7452, 3) 
    190189             
    191190    def test_use_case_4(self): 
     
    213212        self.assertAlmostEquals(qstar, 7.49e-5,2) 
    214213        self.assertAlmostEquals(v, 0.005952674, 3) 
    215         self.assertAlmostEquals(s + _ERR_SURFACE, 9.42e+2, 1) 
     214        self.assertAlmostEquals(s , 941.7452, 3) 
    216215         
    217216    def test_use_case_5(self): 
     
    240239        self.assertAlmostEquals(qstar, 7.88981e-5,2) 
    241240        self.assertAlmostEquals(v, 0.005952674, 3) 
    242         self.assertAlmostEquals(s + _ERR_SURFACE, 9.42e+2, 1) 
     241        self.assertAlmostEquals(s , 941.7452, 3) 
    243242       
    244243class TestInvSlitSmear(unittest.TestCase): 
     
    266265        self.assertAlmostEquals(qstar, 4.1539e-4, 1) 
    267266        self.assertAlmostEquals(v, 0.032164596, 3) 
    268         self.assertAlmostEquals(s + _ERR_SURFACE, 9.42e+2, 1) 
     267        self.assertAlmostEquals(s, 941.7452, 3) 
    269268        
    270269    def test_use_case_2(self): 
     
    283282        self.assertAlmostEquals(qstar, 4.1539e-4, 1) 
    284283        self.assertAlmostEquals(v, 0.032164596,3) 
    285         self.assertAlmostEquals(s + _ERR_SURFACE, 9.42e+2, 1) 
     284        self.assertAlmostEquals(s , 941.7452, 3) 
    286285         
    287286    def test_use_case_3(self): 
     
    306305        self.assertAlmostEquals(qstar,4.1534e-4,3) 
    307306        self.assertAlmostEquals(v, 0.032164596, 3) 
    308         self.assertAlmostEquals(s + _ERR_SURFACE, 9.42e+2, 1) 
     307        self.assertAlmostEquals(s , 941.7452, 3) 
    309308             
    310309    def test_use_case_4(self): 
     
    332331        self.assertAlmostEquals(qstar, 4.1539e-4, 2) 
    333332        self.assertAlmostEquals(v, 0.032164596, 3) 
    334         self.assertAlmostEquals(s + _ERR_SURFACE, 9.42e+2, 1) 
     333        self.assertAlmostEquals(s , 941.7452, 3) 
    335334         
    336335    def test_use_case_5(self): 
     
    359358        self.assertAlmostEquals(qstar, 4.1534e-4,3) 
    360359        self.assertAlmostEquals(v, 0.032164596, 2) 
    361         self.assertAlmostEquals(s + _ERR_SURFACE, 9.42e+2, 1) 
     360        self.assertAlmostEquals(s , 941.7452, 3) 
    362361         
    363362   
     
    385384        self.assertAlmostEquals(qstar, 1.361677e-3, 4) 
    386385        self.assertAlmostEquals(v, 0.115352622, 2) 
    387         self.assertAlmostEquals(s + _ERR_SURFACE, 9.42e+2, 1 ) 
     386        self.assertAlmostEquals(s , 941.7452, 3 ) 
    388387         
    389388    def test_use_case_2(self): 
     
    403402        self.assertAlmostEquals(qstar, 1.361677e-3, 4) 
    404403        self.assertAlmostEquals(v, 0.115352622, 2) 
    405         self.assertAlmostEquals(s + _ERR_SURFACE, 9.42e+2, 1 ) 
     404        self.assertAlmostEquals(s , 941.7452, 3 ) 
    406405        
    407406    def test_use_case_3(self): 
     
    424423        self.assertAlmostEquals(qstar, 0.00138756,2) 
    425424        self.assertAlmostEquals(v, 0.117226896,2) 
    426         self.assertAlmostEquals(s + _ERR_SURFACE, 9.42E+02, 1) 
     425        self.assertAlmostEquals(s ,941.7452, 3) 
    427426       
    428427    def test_use_case_4(self): 
Note: See TracChangeset for help on using the changeset viewer.