You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In [4]: [2.1, 2.2]*pq.m==np.array([2.1, 2.2])
Out[4]: array([ True, True], dtype=bool)
I think this behaviour should be changed, but it would be a major change, potentially affecting a lot of downstream libraries, so an extended period with deprecation warnings would be needed.
Please can other people chime in with their opinion?
Consider this:
I would have expected it to return True only if the Quantity instance was dimensionless.
What do others think?
EDIT:
since the numbers (arrays) cannot be added to each other, I think it really should be an error:
The text was updated successfully, but these errors were encountered: