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
{{ message }}
Repository navigation
Quantity with units returns True for __eq__ with plain numpy array #146
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?
Activity
Change comparison of Quantity (to fix python-quantitiesgh-146)
Change comparison of Quantity (to fix python-quantitiesgh-146)
apdavison commentedon Jan 29, 2018
Similarly,
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?