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