Changeset ebed4de in sasview


Ignore:
Timestamp:
Apr 6, 2017 11:03:54 AM (8 months ago)
Author:
Adam Washington <adam.washington@…>
Branches:
master, ESS_GUI, ESS_GUI_CategroyManager, ESS_GUI_Pr, ESS_GUI_cns, ESS_GUI_corf, ESS_GUI_py2_OLD, SVCC-1, SasView-664, costrafo411, docs, ticket-873, ticket-976, unittest-saveload
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.