Changeset f53d684 in sasview for test/sasinvariant
- Timestamp:
- Dec 5, 2017 10:31:07 AM (7 years ago)
- Branches:
- master, magnetic_scatt, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- 5bb05a4
- Parents:
- 3053a4a
- git-author:
- Stuart Prescott <llimeht@…> (12/05/17 10:31:07)
- git-committer:
- Paul Kienzle <pkienzle@…> (12/05/17 10:31:07)
- Location:
- test/sasinvariant/test
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
test/sasinvariant/test/utest_data_handling.py
r9a5097c rf53d684 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 -
test/sasinvariant/test/utest_use_cases.py
rb09095a rf53d684 4 4 """ 5 5 #TODO: there's no test for smeared extrapolation 6 7 import os.path 6 8 import unittest 7 9 from sas.sascalc.dataloader.loader import Loader … … 9 11 10 12 13 def find(filename): 14 return os.path.join(os.path.dirname(__file__), filename) 15 16 11 17 class Data1D: 12 18 pass … … 18 24 """ 19 25 def setUp(self): 20 self.data_list = Loader().load( "linefittest.txt")26 self.data_list = Loader().load(find("linefittest.txt")) 21 27 self.data = self.data_list[0] 22 28 … … 57 63 """ 58 64 def setUp(self): 59 self.data_list = Loader().load( "linefittest_no_weight.txt")65 self.data_list = Loader().load(find("linefittest_no_weight.txt")) 60 66 self.data = self.data_list[0] 61 67 … … 96 102 """ 97 103 def setUp(self): 98 self.data_list = Loader().load( "PolySpheres.txt")104 self.data_list = Loader().load(find("PolySpheres.txt")) 99 105 self.data = self.data_list[0] 100 106 … … 278 284 def setUp(self): 279 285 # data with smear info 280 list = Loader().load( "latex_smeared.xml")286 list = Loader().load(find("latex_smeared.xml")) 281 287 self.data_q_smear = list[0] 282 288
Note: See TracChangeset
for help on using the changeset viewer.