(Shortest import: from brian2 import have_same_dimensions)
from brian2 import have_same_dimensions)
brian2.units.fundamentalunits.
have_same_dimensions
Test if two values have the same dimensions.