from brian2 import DimensionMismatchError)
Exception class for attempted operations with inconsistent dimensions.
3*mvolt + 2*ampraises this exception. The purpose of this class is to help catch errors based on incorrect units. The exception will print a representation of the dimensions of the two inconsistent objects that were operated on.
A description of the type of operation being performed, e.g. Addition, Multiplication, etc.
The dimensions of the objects involved in the operation, any number of them is possible