h5py_File_read_utf8#

pybrops.core.util.h5py.h5py_File_read_utf8(h5file, fieldname)[source]#

Read an str from a file.

Parameters:
  • h5file (h5py.File) – An open, readable HDF5 file stream.

  • fieldname (str) – Name of the field from which to read.

Returns:

out – A str read from the HDF5 file.

Return type:

str