dim: `Dimension`
The dimensions of the `obj`.
if isNumberType(obj) and not isinstance(obj, Quantity):
return DIMENSIONLESS
try:
return obj.dimensions
After Change
dim: `Dimension`
The dimensions of the `obj`.
if (isinstance(obj, numbers.Number) or isinstance(obj, np.ndarray)
and not isinstance(obj, Quantity)):
return DIMENSIONLESS
try: