evlib.codec.fileformat.conversion

conversion functions across different formats.

Functions

convert_iterator_access_to_hdf5(...[, ...])

Convert IteratorAccess data format into HDF5 format.

write_to_text(event, file_name)

evlib.codec.fileformat.conversion.convert_iterator_access_to_hdf5(iterator_access, hdf5file, key_pairs, image_keys=[])

Convert IteratorAccess data format into HDF5 format.

Parameters:
  • iterator_access (IteratorAccess) – Iterator access format. Each iteration should return dictionary.

  • hdf5file (str) – file path for the HDF5 file.

  • key_pairs (dict) – {data_key: hdf5_key}

  • image_keys (list of str) – data_key list for specifying image data (more than 1 dimensional). Used to define the block size of hdf5.

Returns:

int … number of data processed.

Return type:

int

evlib.codec.fileformat.conversion.write_to_text(event, file_name)
Parameters:
Return type:

None