weldx.U_.from_

U_.from_(value, strict=True, name='value')

Converts a numerical value or quantity to this unit

Parameters
  • value – a Quantity (or numerical value if strict=False) to convert

  • strict – boolean to indicate that only quanities are accepted (Default value = True)

  • name – descriptive name to use if an exception occurs (Default value = “value”)

Returns

The converted value as this unit

Return type

type