BGlib.be.translators.df_utils.be_utils.remove_non_exist_spec_dim_labs

BGlib.be.translators.df_utils.be_utils.remove_non_exist_spec_dim_labs(h5_spec_inds, h5_spec_vals, h5_meas_grp, verbose=False)[source]

Removes non-existent spectroscopic dimension name and units from attributes of spectroscopic datasets.

Notes

This was written mainly to clean up after the buggy Labview HDF5 acquisition software. This will be used in the LabviewHDF5Patcher Translator

Parameters:
  • h5_spec_inds (h5py.Dataset) – Dataset containing the spectroscopic indices

  • h5_spec_vals (h5py.Dataset) – Dataset containing the spectroscopic values

  • h5_meas_grp (h5py.Group) – Group containing all the parameters for the BE measurement

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

Return type:

None