Changeset 5ae40e7 in sasview for test


Ignore:
Timestamp:
Apr 9, 2017 3:08:48 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:
f344f6c
Parents:
10ab40e
git-author:
Adam Washington <adam.washington@…> (04/09/17 03:01:01)
git-committer:
Adam Washington <adam.washington@…> (04/09/17 03:08:48)
Message:

Throw an exception if sesans file has conflicting units

We've decided to mandate identical units for the current file format
version to allow other programs to import the files more easily. This
may change in later versions

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

Legend:

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

    r10ab40e r5ae40e7  
    5252            "sesans_examples/sesans_no_data.ses") 
    5353 
     54    def test_sesans_no_spin_echo_unit(self): 
     55        """ 
     56            Confirm that sesans files with no units from the spin echo length raise an appropriate error 
     57        """ 
     58        self.assertRaises( 
     59            RuntimeError, 
     60            self.loader, 
     61            "sesans_examples/no_spin_echo_unit.ses") 
     62 
    5463if __name__ == "__main__": 
    5564    unittest.main() 
Note: See TracChangeset for help on using the changeset viewer.