sidpy.hdf.hdf_utils.copy_attributes

sidpy.hdf.hdf_utils.copy_attributes(source, dest, skip_refs=True, verbose=False)[source]

Copy attributes from one h5object to another

Parameters:
  • source (h5py.Dataset, h5py.Group, or h5py.File) – Object containing the desired attributes

  • dest (h5py.Dataset, h5py.Group, or h5py.File) – Object to which the attributes need to be copied to

  • skip_refs (bool, optional. default = True) – Whether or not the references (dataset and region) should be skipped

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