trifinger_cameras.hdf5 module

Utilities for working with HDF5 camera log files.

trifinger_cameras.hdf5.verify_tricamera_hdf5(h5file: File, supported_formats: Container[int]) None[source]

Verify that the HDF5 file is a valid TriCamera log file of a supported version.

Parameters:
  • h5file – Opened HDF5 file.

  • supported_formats – Supported file formats.

Raises:

ValueError – If the file is not a valid TriCamera log file (based on magic byte) or the format version is not supported.