Dimension class¶
(Shortest import: from brian2.units.fundamentalunits import Dimension)
-
class
brian2.units.fundamentalunits.
Dimension
(dims)[source]¶ Bases:
object
Stores the indices of the 7 basic SI unit dimension (length, mass, etc.).
Provides a subset of arithmetic operations appropriate to dimensions: multiplication, division and powers, and equality testing.
Attributes
dim
Returns the Dimension
object itself.is_dimensionless
Whether this Dimension is dimensionless. Methods
get_dimension
(d)Return a specific dimension. Details
-
dim
¶ Returns the
Dimension
object itself. This can be useful, because it allows to check for the dimension of an object by checking itsdim
attribute – this will return aDimension
object forQuantity
,Unit
andDimension
.
-
is_dimensionless
¶ Whether this Dimension is dimensionless.
-