ewoksxrpd.tasks.utils.pyfai_utils.parse_pyfai_units#

ewoksxrpd.tasks.utils.pyfai_utils.parse_pyfai_units(pyfai_unit)[source]#

Parse PyFAI result units into a tuple containing the radial axis info and the azimuthal axis info. Handles pyFAI >= 2024.1 units (tuple with radial+azimuthal) and pyFAI < 2024.1 units (only radial unit).

If no info is available for the azimuthal axis, it will default to name “chi” and unit “deg”.

Parameters:

pyfai_unit (Union[Unit, Tuple[Unit, Unit]])

Return type:

Tuple[AxisInfo, AxisInfo]