- Timestamp:
- Apr 6, 2017 11:03:54 AM (8 years ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
test/sasdataloader/test/utest_sesans.py
reb5f006 rebed4de 6 6 from sas.sascalc.dataloader.loader import Loader 7 7 8 import os.path9 8 10 9 class sesans_reader(unittest.TestCase): … … 30 29 self.assertEqual(f.isSesans, True) 31 30 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 32 41 if __name__ == "__main__": 33 42 unittest.main()
Note: See TracChangeset
for help on using the changeset viewer.