Changes in test/sasdataloader/test/utest_averaging.py [f4e2f22:f53d684] in sasview
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
test/sasdataloader/test/utest_averaging.py
rf4e2f22 rf53d684 106 106 107 107 def setUp(self): 108 filepath = find(' test_data' + os.sep + 'MAR07232_rest.h5')108 filepath = find('MAR07232_rest.h5') 109 109 self.data_list = Loader().load(filepath) 110 110 self.data = self.data_list[0] … … 121 121 122 122 o = r(self.data) 123 filepath = find(' test_data' + os.sep + 'ring_testdata.txt')123 filepath = find('ring_testdata.txt') 124 124 answer_list = Loader().load(filepath) 125 125 answer = answer_list[0] … … 142 142 o = r(self.data) 143 143 144 filepath = find(' test_data' + os.sep + 'avg_testdata.txt')144 filepath = find('avg_testdata.txt') 145 145 answer = Loader().load(filepath)[0] 146 146 for i in range(r.nbins_phi): … … 158 158 s, ds, npoints = r(self.data) 159 159 self.assertAlmostEqual(s, 34.278990899999997, 4) 160 self.assertAlmostEqual(ds, 8.237259999538685, 4)160 self.assertAlmostEqual(ds, 7.8007981835194293, 4) 161 161 self.assertAlmostEqual(npoints, 324.0000, 4) 162 162 … … 164 164 s, ds = r(self.data) 165 165 self.assertAlmostEqual(s, 0.10579935462962962, 4) 166 self.assertAlmostEqual(ds, 0.02 542364197388483, 4)166 self.assertAlmostEqual(ds, 0.024076537603455028, 4) 167 167 168 168 def test_slabX(self): … … 177 177 o = r(self.data) 178 178 179 filepath = find(' test_data' + os.sep + 'slabx_testdata.txt')179 filepath = find('slabx_testdata.txt') 180 180 answer = Loader().load(filepath)[0] 181 181 for i in range(len(o.x)): … … 195 195 o = r(self.data) 196 196 197 filepath = find(' test_data' + os.sep + 'slaby_testdata.txt')197 filepath = find('slaby_testdata.txt') 198 198 answer = Loader().load(filepath)[0] 199 199 for i in range(len(o.x)): … … 221 221 o = r(self.data) 222 222 223 filepath = find(' test_data' + os.sep + 'ring_testdata.txt')223 filepath = find('ring_testdata.txt') 224 224 answer = Loader().load(filepath)[0] 225 225 for i in range(len(o.x)): … … 238 238 o = r(self.data) 239 239 240 filepath = find(' test_data' + os.sep + 'sectorphi_testdata.txt')240 filepath = find('sectorphi_testdata.txt') 241 241 answer = Loader().load(filepath)[0] 242 242 for i in range(len(o.x)): … … 255 255 o = r(self.data) 256 256 257 filepath = find(' test_data' + os.sep + 'sectorq_testdata.txt')257 filepath = find('sectorq_testdata.txt') 258 258 answer = Loader().load(filepath)[0] 259 259 for i in range(len(o.x)):
Note: See TracChangeset
for help on using the changeset viewer.