trifinger_cameras.hdf5 module¶
Utilities for working with HDF5 camera log files.
- trifinger_cameras.hdf5.init_tricamera_hdf5(h5: File, camera_params: Sequence[CameraCalibrationFile], n_frames: int) None[source]¶
- Create attributes and datasets in the given HDF5 file. 
- 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. 
 
- trifinger_cameras.hdf5.write_tricamera_hdf5(h5: File, camera_params: Sequence[CameraCalibrationFile], n_frames: int, stamped_observations: Iterable[tuple[TriCameraObservation, int]]) None[source]¶