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
Quantitywith the given dimensions. Callsget_or_create_dimensionswith the dimension tuple of thedimsargument to make sure that unpickling (which calls this function) does not accidentally create new Dimension objects which should instead refer to existing ones.