(Shortest import: from brian2 import have_same_dimensions)
from brian2 import have_same_dimensions)
Test if two values have the same dimensions.
obj1, obj2 : {Quantity, array-like, number}
Quantity
The values of which to compare the dimensions.
same : bool
bool
True if obj1 and obj2 have the same dimensions.
True
obj1
obj2