apptools.io.h5.utils module

apptools.io.h5.utils.open_h5file(filename, mode='r+', **kwargs)[source]

Context manager for reading an HDF5 file as an H5File object.

Parameters
  • filename (str) – HDF5 file name.

  • mode (str) –

    Mode to open the file:

    ’r’ : Read-only ‘w’ : Write; create new file (an existing file would be deleted). ‘a’ : Read and write to file; create if not existing ‘r+’: Read and write to file; must already exist

  • arguments. (See H5File for additional keyword) –