h5py_File_has_group#

pybrops.core.util.h5py.h5py_File_has_group(h5file, groupname)[source]#

Determine if an h5py.File has a group.

Parameters:
  • h5file (h5py.File) – An HDF5 file stream to check.

  • groupname (str) – Name of the group to check in h5file

Returns:

out – Whether groupname is in h5file.

Return type:

bool