weldx.Q_.from_sequence¶
- classmethod Q_.from_sequence(seq, units=None)¶
Transforms a sequence of Quantities into an numpy.array quantity. If no units are specified, the unit of the first element will be used.
If units is not specified and sequence is empty, the unit cannot be determined and a ValueError is raised.
- Parameters
seq (sequence of pint.Quantity) – sequence of pint.Quantity
units (UnitsContainer, str or pint.Quantity) – units of the physical quantity to be created (Default value = None)
- Returns
- Return type