nxtomomill.utils.hdf5.get_dataset_unit#
- nxtomomill.utils.hdf5.get_dataset_unit(dataset, default, from_dataset)[source]#
Util function to return the pint Unit of a HDF5 dataset. This dataset must have unit or units defined else will fall back to the default unit
- Parameters:
from_dataset (
str) – information about the ‘dataset’ / metadata we are trying to access. For logging purpose in case of failure.- Return type:
Unit