sidpy.hdf.prov_utils.check_for_old

sidpy.hdf.prov_utils.check_for_old(h5_base, tool_name, new_parms=None, target_dset=None, h5_parent_goup=None, verbose=False)[source]

Check to see if the results of a tool already exist and if they were performed with the same parameters.

Parameters:
  • h5_base (h5py.Dataset object) – Dataset on which the tool is being applied to

  • tool_name (str) – process or analysis name

  • new_parms (dict, optional) – Parameters with which this tool will be performed.

  • target_dset (str, optional, default = None) – Name of the dataset whose attributes will be compared against new_parms. Default - checking against the group

  • h5_parent_goup (h5py.Group, optional. Default = None) – The group to search under. Use this option when h5_base and the potential results groups (within h5_parent_goup are located in different HDF5 files. Default - search within h5_base.parent

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

Returns:

group – List of all h5py.Group objects with parameters matching those in new_parms

Return type:

list