is_scalar_type function
(Shortest import: from brian2 import is_scalar_type)
-
brian2.units.fundamentalunits.is_scalar_type(obj)[source]
Tells you if the object is a 1d number type.
- Parameters:
obj : object
- Returns:
scalar : bool
True
if obj
is a scalar that can be interpreted as a
dimensionless Quantity
.