Changeset 277aab4e in sasview for Invariant/test
- Timestamp:
- Jan 8, 2010 2:06:53 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:
- b345c45
- Parents:
- 2db1d66
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Invariant/test/utest_use_cases.py
r4d270706 r277aab4e 7 7 from DataLoader.loader import Loader 8 8 from sans.invariant import invariant 9 _ERR_SURFACE = 0.310 9 11 10 class Data1D: … … 130 129 self.assertAlmostEquals(qstar, 7.48959e-5,2) 131 130 self.assertAlmostEquals(v, 0.005644689, 4) 132 self.assertAlmostEquals(s + _ERR_SURFACE, 9.42e+2, 1)131 self.assertAlmostEquals(s , 941.7452, 3) 133 132 134 133 def test_use_case_2(self): … … 151 150 self.assertAlmostEquals(qstar, 7.48959e-5,2) 152 151 self.assertAlmostEquals(v, 0.005644689, 1) 153 self.assertAlmostEquals(s + _ERR_SURFACE, 9.42e+2, 1)152 self.assertAlmostEquals(s , 941.7452, 3) 154 153 155 154 … … 187 186 self.assertAlmostEquals(qstar, 7.49e-5, 1) 188 187 self.assertAlmostEquals(v, 0.005648401, 4) 189 self.assertAlmostEquals(s + _ERR_SURFACE, 9.42e+2, 1)188 self.assertAlmostEquals(s , 941.7452, 3) 190 189 191 190 def test_use_case_4(self): … … 213 212 self.assertAlmostEquals(qstar, 7.49e-5,2) 214 213 self.assertAlmostEquals(v, 0.005952674, 3) 215 self.assertAlmostEquals(s + _ERR_SURFACE, 9.42e+2, 1)214 self.assertAlmostEquals(s , 941.7452, 3) 216 215 217 216 def test_use_case_5(self): … … 240 239 self.assertAlmostEquals(qstar, 7.88981e-5,2) 241 240 self.assertAlmostEquals(v, 0.005952674, 3) 242 self.assertAlmostEquals(s + _ERR_SURFACE, 9.42e+2, 1)241 self.assertAlmostEquals(s , 941.7452, 3) 243 242 244 243 class TestInvSlitSmear(unittest.TestCase): … … 266 265 self.assertAlmostEquals(qstar, 4.1539e-4, 1) 267 266 self.assertAlmostEquals(v, 0.032164596, 3) 268 self.assertAlmostEquals(s + _ERR_SURFACE, 9.42e+2, 1)267 self.assertAlmostEquals(s, 941.7452, 3) 269 268 270 269 def test_use_case_2(self): … … 283 282 self.assertAlmostEquals(qstar, 4.1539e-4, 1) 284 283 self.assertAlmostEquals(v, 0.032164596,3) 285 self.assertAlmostEquals(s + _ERR_SURFACE, 9.42e+2, 1)284 self.assertAlmostEquals(s , 941.7452, 3) 286 285 287 286 def test_use_case_3(self): … … 306 305 self.assertAlmostEquals(qstar,4.1534e-4,3) 307 306 self.assertAlmostEquals(v, 0.032164596, 3) 308 self.assertAlmostEquals(s + _ERR_SURFACE, 9.42e+2, 1)307 self.assertAlmostEquals(s , 941.7452, 3) 309 308 310 309 def test_use_case_4(self): … … 332 331 self.assertAlmostEquals(qstar, 4.1539e-4, 2) 333 332 self.assertAlmostEquals(v, 0.032164596, 3) 334 self.assertAlmostEquals(s + _ERR_SURFACE, 9.42e+2, 1)333 self.assertAlmostEquals(s , 941.7452, 3) 335 334 336 335 def test_use_case_5(self): … … 359 358 self.assertAlmostEquals(qstar, 4.1534e-4,3) 360 359 self.assertAlmostEquals(v, 0.032164596, 2) 361 self.assertAlmostEquals(s + _ERR_SURFACE, 9.42e+2, 1)360 self.assertAlmostEquals(s , 941.7452, 3) 362 361 363 362 … … 385 384 self.assertAlmostEquals(qstar, 1.361677e-3, 4) 386 385 self.assertAlmostEquals(v, 0.115352622, 2) 387 self.assertAlmostEquals(s + _ERR_SURFACE, 9.42e+2, 1)386 self.assertAlmostEquals(s , 941.7452, 3 ) 388 387 389 388 def test_use_case_2(self): … … 403 402 self.assertAlmostEquals(qstar, 1.361677e-3, 4) 404 403 self.assertAlmostEquals(v, 0.115352622, 2) 405 self.assertAlmostEquals(s + _ERR_SURFACE, 9.42e+2, 1)404 self.assertAlmostEquals(s , 941.7452, 3 ) 406 405 407 406 def test_use_case_3(self): … … 424 423 self.assertAlmostEquals(qstar, 0.00138756,2) 425 424 self.assertAlmostEquals(v, 0.117226896,2) 426 self.assertAlmostEquals(s + _ERR_SURFACE, 9.42E+02, 1)425 self.assertAlmostEquals(s ,941.7452, 3) 427 426 428 427 def test_use_case_4(self):
Note: See TracChangeset
for help on using the changeset viewer.