Changeset 3a473ef in sasview for test/sasinvariant/test/utest_data_handling.py
- Timestamp:
- Aug 31, 2018 7:13:23 AM (6 years ago)
- Branches:
- ESS_GUI, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
- Children:
- c1cfa80
- Parents:
- aa1db44
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
test/sasinvariant/test/utest_data_handling.py
r9a5097c r3a473ef 8 8 copyright 2010, University of Tennessee 9 9 """ 10 11 import os.path 10 12 import unittest 11 13 import math … … 15 17 16 18 from sas.sascalc.invariant import invariant 17 19 20 21 def find(filename): 22 return os.path.join(os.path.dirname(__file__), filename) 23 24 18 25 class TestLinearFit(unittest.TestCase): 19 26 """ … … 94 101 """ 95 102 def setUp(self): 96 data = Loader().load( "latex_smeared_slit.xml")103 data = Loader().load(find("latex_smeared_slit.xml")) 97 104 self.data = data[0] 98 105 self.data.dxl = None … … 676 683 value = math.fabs(test_y[i]- temp[i])/temp[i] 677 684 self.assert_(value < 0.001) 678
Note: See TracChangeset
for help on using the changeset viewer.