pyUSID.io.hdf_utils.simple.assign_group_index

pyUSID.io.hdf_utils.simple.assign_group_index(h5_parent_group, base_name, verbose=False)[source]

Searches the parent h5 group to find the next available index for the group

Parameters:
  • h5_parent_group (h5py.Group object) – Parent group under which the new group object will be created

  • base_name (str or unicode) – Base name of the new group without index

  • verbose (bool, optional. Default=False) – Whether or not to print debugging statements

Returns:

base_name – Base name of the new group with the next available index as a suffix

Return type:

str or unicode