Changeset ebed4de in sasview


Ignore:
Timestamp:
Apr 6, 2017 11:03:54 AM (8 years ago)
Author:
Adam Washington <adam.washington@…>
Branches:
master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, 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.