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.dimensionsbecause it will returnDIMENSIONLESSif the object is of number type but not aQuantity(e.g. afloatorint).