quantity_with_dimensions function
(Shortest import: from brian2.units.fundamentalunits import quantity_with_dimensions)
- brian2.units.fundamentalunits.quantity_with_dimensions(floatval, dims)[source]
Create a new
Quantity
with the given dimensions. Callsget_or_create_dimensions
with the dimension tuple of thedims
argument to make sure that unpickling (which calls this function) does not accidentally create new Dimension objects which should instead refer to existing ones.