pyUSID.io.hdf_utils.simple.check_for_matching_attrs¶
- pyUSID.io.hdf_utils.simple.check_for_matching_attrs(h5_obj, new_parms=None, verbose=False)[source]¶
Compares attributes in the given H5 object against those in the provided dictionary and returns True if the parameters match, and False otherwise
- Parameters:
h5_obj (h5py object (Dataset or
h5py.Group
)) – Object whose attributes will be compared against new_parmsnew_parms (dict, optional. default = empty dictionary) – Parameters to compare against the attributes present in h5_obj
verbose (bool, optional, default = False) – Whether or not to print debugging statements
- Returns:
tests – Whether or not all paramters in new_parms matched with those in h5_obj’s attributes
- Return type: