sidpy.hdf.prov_utils.create_indexed_group

sidpy.hdf.prov_utils.create_indexed_group(h5_parent_group, base_name)[source]

Creates a group with an indexed name (eg - ‘Measurement_012’) under h5_parent_group using the provided base_name as a prefix for the group’s name

Parameters:
  • h5_parent_group (h5py.Group or h5py.File) – File or group within which the new group will be created

  • base_name (str or unicode) – Prefix for the group name. This need not end with a ‘_’. It will be added automatically