Changeset f53d684 in sasview for test/sasdataloader/test/utest_averaging.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_averaging.py
rfe15198 rf53d684 13 13 SlabY, get_q, 14 14 reader2D_converter) 15 16 17 def find(filename): 18 return os.path.join(os.path.dirname(__file__), filename) 15 19 16 20 … … 102 106 103 107 def setUp(self): 104 filepath = os.path.join(os.path.dirname( 105 os.path.realpath(__file__)), 'MAR07232_rest.h5') 108 filepath = find('MAR07232_rest.h5') 106 109 self.data_list = Loader().load(filepath) 107 110 self.data = self.data_list[0] … … 118 121 119 122 o = r(self.data) 120 filepath = os.path.join(os.path.dirname( 121 os.path.realpath(__file__)), 'ring_testdata.txt') 123 filepath = find('ring_testdata.txt') 122 124 answer_list = Loader().load(filepath) 123 125 answer = answer_list[0] … … 140 142 o = r(self.data) 141 143 142 filepath = os.path.join(os.path.dirname( 143 os.path.realpath(__file__)), 'avg_testdata.txt') 144 filepath = find('avg_testdata.txt') 144 145 answer = Loader().load(filepath)[0] 145 146 for i in range(r.nbins_phi): … … 176 177 o = r(self.data) 177 178 178 filepath = os.path.join(os.path.dirname( 179 os.path.realpath(__file__)), '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 = os.path.join(os.path.dirname( 198 os.path.realpath(__file__)), 'slaby_testdata.txt') 197 filepath = find('slaby_testdata.txt') 199 198 answer = Loader().load(filepath)[0] 200 199 for i in range(len(o.x)): … … 222 221 o = r(self.data) 223 222 224 filepath = os.path.join(os.path.dirname( 225 os.path.realpath(__file__)), 'ring_testdata.txt') 223 filepath = find('ring_testdata.txt') 226 224 answer = Loader().load(filepath)[0] 227 225 for i in range(len(o.x)): … … 240 238 o = r(self.data) 241 239 242 filepath = os.path.join(os.path.dirname( 243 os.path.realpath(__file__)), 'sectorphi_testdata.txt') 240 filepath = find('sectorphi_testdata.txt') 244 241 answer = Loader().load(filepath)[0] 245 242 for i in range(len(o.x)): … … 258 255 o = r(self.data) 259 256 260 filepath = os.path.join(os.path.dirname( 261 os.path.realpath(__file__)), 'sectorq_testdata.txt') 257 filepath = find('sectorq_testdata.txt') 262 258 answer = Loader().load(filepath)[0] 263 259 for i in range(len(o.x)):
Note: See TracChangeset
for help on using the changeset viewer.