Collection¶
- class nodimo.collection.Collection(*quantities: Quantity)[source]¶
Collection of quantities.
This is the base class for all classes created with a collection of quantities.
- Parameters:
- *quantitiesQuantity
Quantities that constitute the collection.
- Attributes:
- quantitieslist[Quantity]
List with the quantities that constitute the collection.
Methods
show(use_custom_css=True, use_unicode=True)
Displays the collection in a pretty format.
- Raises:
- TypeError
If inputs to class are not instances of Quantity.
- ValueError
If inputs contains different quantities with equal names.