(Shortest import: from brian2 import is_scalar_type)
from brian2 import is_scalar_type)
Tells you if the object is a 1d number type.