Changeset a79ab31 in sasview


Ignore:
Timestamp:
Apr 9, 2017 4:12:59 AM (6 months ago)
Author:
Adam Washington <adam.washington@…>
Branches:
master, ESS_GUI, ESS_GUI_SasView245, costrafo411, py3, ticket-853-fit-gui-to-calc, ticket-869, ticket-887-reorg, ticket-915, ticket-947-sasmodels-docs, ticket-976, unittest-saveload
Children:
ade1080
Parents:
4d465e3
Message:

Start testing invalid sesans files

Location:
test/sasdataloader/test
Files:
1 added
1 edited

Legend:

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

    raa45dcd ra79ab31  
    4242        self.assertEqual(f.sample.thickness, 0.2) 
    4343 
     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) 
    4456 
    4557if __name__ == "__main__": 
Note: See TracChangeset for help on using the changeset viewer.