Changeset 3a473ef in sasview for test/fileconverter
- 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/fileconverter/test/utest_nxcansas_writer.py
r5a8cdbb r3a473ef 3 3 4 4 import os 5 import pylint5 import os.path 6 6 import unittest 7 7 import warnings 8 8 9 9 warnings.simplefilter("ignore") 10 11 12 def find(filename): 13 return os.path.join(os.path.dirname(__file__), filename) 14 10 15 11 16 class nxcansas_writer(unittest.TestCase): … … 14 19 self.loader = Loader() 15 20 self.writer = NXcanSASWriter() 16 self.read_file_1d = "cansas1d.xml"17 self.write_file_1d = "export1d.h5"18 self.read_file_2d = "exp18_14_igor_2dqxqy.dat"19 self.write_file_2d = "export2d.h5"21 self.read_file_1d = find("cansas1d.xml") 22 self.write_file_1d = find("export1d.h5") 23 self.read_file_2d = find("exp18_14_igor_2dqxqy.dat") 24 self.write_file_2d = find("export2d.h5") 20 25 21 26 self.data_1d = self.loader.load(self.read_file_1d)[0]
Note: See TracChangeset
for help on using the changeset viewer.