(Shortest import: from brian2 import is_scalar_type)
from brian2 import is_scalar_type)
Tells you if the object is a 1d number type.
obj : object
object
The object to check.
scalar : bool
bool
True if obj is a scalar that can be interpreted as a dimensionless Quantity.
True
obj
Quantity