Changeset f53d684 in sasview for test/sasdataloader/test/utest_ascii.py
- Timestamp:
- Dec 5, 2017 12:31:07 PM (6 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 12:31:07)
- git-committer:
- Paul Kienzle <pkienzle@…> (12/05/17 12:31:07)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
test/sasdataloader/test/utest_ascii.py
rfe15198 rf53d684 2 2 Unit tests for the ascii (n-column) reader 3 3 """ 4 5 import os.path 4 6 import warnings 5 7 warnings.simplefilter("ignore") … … 9 11 10 12 13 def find(filename): 14 return os.path.join(os.path.dirname(__file__), filename) 15 16 11 17 class ABSReaderTests(unittest.TestCase): 12 18 13 19 def setUp(self): 14 20 self.loader = Loader() 15 self.f1_list = self.loader.load( "ascii_test_1.txt")21 self.f1_list = self.loader.load(find("ascii_test_1.txt")) 16 22 self.f1 = self.f1_list[0] 17 self.f2_list = self.loader.load( "ascii_test_2.txt")23 self.f2_list = self.loader.load(find("ascii_test_2.txt")) 18 24 self.f2 = self.f2_list[0] 19 self.f3_list = self.loader.load( "ascii_test_3.txt")25 self.f3_list = self.loader.load(find("ascii_test_3.txt")) 20 26 self.f3 = self.f3_list[0] 21 self.f4_list = self.loader.load( "ascii_test_4.abs")27 self.f4_list = self.loader.load(find("ascii_test_4.abs")) 22 28 self.f4 = self.f4_list[0] 23 self.f5_list = self.loader.load( "ascii_test_5.txt")29 self.f5_list = self.loader.load(find("ascii_test_5.txt")) 24 30 self.f5 = self.f5_list[0] 25 31 … … 99 105 f = None 100 106 try: 101 f = self.loader.load( "ascii_test_6.txt")107 f = self.loader.load(find("ascii_test_6.txt")) 102 108 # The length of the data is 5 103 109 except:
Note: See TracChangeset
for help on using the changeset viewer.