get_or_create_dimension function¶
(Shortest import: from brian2 import get_or_create_dimension)
-
brian2.units.fundamentalunits.
get_or_create_dimension
(*args, **kwds)[source]¶ Create a new Dimension object or get a reference to an existing one. This function takes care of only creating new objects if they were not created before and otherwise returning a reference to an existing object. This allows to compare dimensions very efficiently using
is
.