Changeset 8dec7e7 in sasview for src/sas/sascalc/dataloader/readers/cansas_reader_HDF5.py
- Timestamp:
- Jul 27, 2017 10:13:00 AM (7 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:
- 0615d54
- Parents:
- 9d786e5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sascalc/dataloader/readers/cansas_reader_HDF5.py
r9d786e5 r8dec7e7 13 13 TransmissionSpectrum, Detector 14 14 from sas.sascalc.dataloader.data_info import combine_data_info_with_plottable 15 from sas.sascalc.dataloader.loader_exceptions import FileContentsException 15 from sas.sascalc.dataloader.loader_exceptions import FileContentsException, DefaultReaderException 16 16 from sas.sascalc.dataloader.file_reader_base_class import FileReader 17 17 … … 78 78 self.raw_data = h5py.File(filename, 'r') 79 79 except Exception as e: 80 raise FileContentsException, e 80 if extension not in self.ext: 81 msg = "CanSAS2.0 HDF5 Reader could not load file {}".format(basename + extension) 82 raise DefaultReaderException(msg) 83 raise FileContentsException(e.message) 81 84 # Read in all child elements of top level SASroot 82 85 self.read_children(self.raw_data, [])
Note: See TracChangeset
for help on using the changeset viewer.