Changeset 8c9ffde in sasview for test/sasinvariant
- Timestamp:
- Feb 13, 2015 4:01:33 AM (10 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:
- 35ec279
- Parents:
- 3a39c2e
- Location:
- test/sasinvariant/test
- Files:
-
- 7 moved
Legend:
- Unmodified
- Added
- Removed
-
test/sasinvariant/test/utest_data_handling.py
rbe577e7 r8c9ffde 10 10 import unittest 11 11 import numpy, math 12 from sa ns.dataloader.loader import Loader13 from sa ns.dataloader.data_info import Data1D14 from sa ns.invariant import invariant12 from sas.dataloader.loader import Loader 13 from sas.dataloader.data_info import Data1D 14 from sas.invariant import invariant 15 15 16 16 class TestLinearFit(unittest.TestCase): … … 196 196 delta_qs_extr, delta_dqs_extr = inv.get_qstar_low() 197 197 198 # A fit using Sa nsView gives 0.0655 for the value of the exponent198 # A fit using SasView gives 0.0655 for the value of the exponent 199 199 self.assertAlmostEqual(inv._low_extrapolation_function.power, 0.0655, 3) 200 200 … … 237 237 delta_qs_extr, delta_dqs_extr = inv.get_qstar_high() 238 238 239 # From previous analysis using Sa nsView, we expect an exponent of about 3239 # From previous analysis using SasView, we expect an exponent of about 3 240 240 self.assertTrue(math.fabs(inv._high_extrapolation_function.power-3)<0.1) 241 241 -
test/sasinvariant/test/utest_use_cases.py
r5777106 r8c9ffde 6 6 import unittest 7 7 import numpy 8 from sa ns.dataloader.loader import Loader9 from sa ns.invariant import invariant8 from sas.dataloader.loader import Loader 9 from sas.invariant import invariant 10 10 11 11 class Data1D:
Note: See TracChangeset
for help on using the changeset viewer.