get_dimensions function
(Shortest import: from brian2 import get_dimensions)
- brian2.units.fundamentalunits.get_dimensions(obj)[source]
Return the dimensions of any object that has them.
Slightly more general than
Quantity.dimensions
because it will returnDIMENSIONLESS
if the object is of number type but not aQuantity
(e.g. afloat
orint
).