Changeset a79ab31 in sasview
- Timestamp:
- Apr 9, 2017 4:12:59 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:
- ade1080
- Parents:
- 4d465e3
- Location:
- test/sasdataloader/test
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
test/sasdataloader/test/utest_sesans.py
raa45dcd ra79ab31 42 42 self.assertEqual(f.sample.thickness, 0.2) 43 43 44 def test_sesans_no_data(self): 45 """ 46 Test .SES loading on a TOF dataset 47 """ 48 f = self.loader.load("sesans_examples/sesans_no_data.ses") 49 self.assertEqual(len(f.x), 57) 50 self.assertEqual(f.x[-1], 19303.4) 51 self.assertEqual(f.source.wavelength[-1], 13.893668) 52 self.assertEqual(f.source.wavelength[0], 1.612452) 53 self.assertEqual(f.sample.yacceptance, (0.09, "radians")) 54 self.assertEqual(f.sample.zacceptance, (0.09, "radians")) 55 self.assertEqual(f.sample.thickness, 0.2) 44 56 45 57 if __name__ == "__main__":
Note: See TracChangeset
for help on using the changeset viewer.