tomoscan.framereducer.utils.get_unit#

tomoscan.framereducer.utils.get_unit(attrs)#

Get the unit from the attributes of a dataset or group. The unit can be specified with the “unit” or “units” attribute. If the unit is “kev”, it will be converted to keV. If the unit is not specified, None will be returned.

Return type:

Optional[Unit]