Changeset ebed4de in sasview


Ignore:
Timestamp:
Apr 6, 2017 11:03:54 AM (18 months ago)
Author:
Adam Washington <adam.washington@…>
Branches:
master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_Pr, ESS_GUI_Pr_fixes, ESS_GUI_corf, ESS_GUI_iss1032, ESS_GUI_iss1033, ESS_GUI_iss1034, ESS_GUI_iss1052, ESS_GUI_iss879, ESS_GUI_iss957, ESS_GUI_iss959, ESS_GUI_iss966, ESS_GUI_iss976, ESS_GUI_poly_plot2, SVCC-1, SasView-664, bad_file_loader_fix, costrafo411, ticket-1094-headless, ticket-1111, ticket-818, ticket885, unittest-saveload, win64bit_conda_vm
Children:
3b858af, 7e56311
Parents:
eb5f006
Message:

Start adding TOF file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/sasdataloader/test/utest_sesans.py

    reb5f006 rebed4de  
    66from sas.sascalc.dataloader.loader import Loader 
    77 
    8 import os.path 
    98 
    109class sesans_reader(unittest.TestCase): 
     
    3029        self.assertEqual(f.isSesans, True) 
    3130 
     31    def test_sesans_tof(self): 
     32        """ 
     33            Test .SES loading on a TOF dataset 
     34        """ 
     35        f = self.loader.load("sphere_isis.ses") 
     36        self.assertEqual(len(f.x), 57) 
     37        self.assertEqual(f.x[-1], 19303.4) 
     38        self.assertEqual(f.source.wavelength[-1], 13.893668) 
     39 
     40 
    3241if __name__ == "__main__": 
    3342    unittest.main() 
Note: See TracChangeset for help on using the changeset viewer.