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 }}
Comparison between quantities and plain numbers is inconsistent and unsafe #245
If I have a quantity with a unit, e.g.,
then
returns
Truewhereasreturns
False. Arguably, both should raise a ValueError just likedoes in this example.
If the community agrees, I would be happy to prepare a pull request to change the behavior.