def _read_group_h5(filename, groupname):
with h5py.File(filename, '<STR_LIT:r>') as h5f:<EOL><INDENT>data = h5f[groupname][()]<EOL><DEDENT>return data<EOL>
Return group content.

    Args:
        filename (:class:`pathlib.Path`): path of hdf5 file.
        groupname (str): name of group to read.
    Returns:
        :class:`numpy.array`: content of group.