Changeset 3a473ef in sasview for test/fileconverter


Ignore:
Timestamp:
Aug 31, 2018 7:13:23 AM (6 years ago)
Author:
Piotr Rozyczko <rozyczko@…>
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
Message:

Manual update of test/ directory with changes on master - SASVIEW-996

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/fileconverter/test/utest_nxcansas_writer.py

    r5a8cdbb r3a473ef  
    33 
    44import os 
    5 import pylint 
     5import os.path 
    66import unittest 
    77import warnings 
    88 
    99warnings.simplefilter("ignore") 
     10 
     11 
     12def find(filename): 
     13    return os.path.join(os.path.dirname(__file__), filename) 
     14 
    1015 
    1116class nxcansas_writer(unittest.TestCase): 
     
    1419        self.loader = Loader() 
    1520        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") 
    2025 
    2126        self.data_1d = self.loader.load(self.read_file_1d)[0] 
Note: See TracChangeset for help on using the changeset viewer.