quant_sequence_to_quant_array
quant_sequence_to_quant_array(
sequence: collections.abc.Sequence[Quantity] ,
)-> ‘Quantity’
Convert a sequence of Quantities (eg list) to a Quantity array.
Will simplify all quantities. Raises an error if not all elements have the same units.
Parameters
Parameter | Description |
---|---|
sequence | A sequence of Quantities. |
Note
This is probably not efficient for large lists.