weldx.U_.is_compatible_with

U_.is_compatible_with(other, *contexts, **ctx_kwargs)

check if the other object is compatible

Parameters
  • other – The object to check. Treated as dimensionless if not a Quantity, Unit or str.

  • *contexts (str or pint.Context) – Contexts to use in the transformation.

  • **ctx_kwargs – Values for the Context/s

Returns

Return type

bool