weldx.util.xr_check_dimensionality#

weldx.util.xr_check_dimensionality(da, units_ref)#

Check if the dimensionality of a DataArray is compatible with reference unit.

Parameters:
  • da (DataArray) – The data array that should be checked.

  • units_ref (str | Unit) – The reference unit

Raises:

pint.DimensionalityError – The error is raised if the check fails