-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BUG: temperature units comparison #407
Labels
bug
Something isn't working
Comments
neutrinoceros
added a commit
to neutrinoceros/unyt
that referenced
this issue
Apr 2, 2023
neutrinoceros
added a commit
to neutrinoceros/unyt
that referenced
this issue
Apr 2, 2023
neutrinoceros
added a commit
to neutrinoceros/unyt
that referenced
this issue
Apr 2, 2023
neutrinoceros
added a commit
to neutrinoceros/unyt
that referenced
this issue
Apr 8, 2023
FTR #408 is only part of the solution to this issue. Line 472 in 79ef518
this is probably simple enough to fix, though to avoid building a chain of co-dependent PRs, I'll wait for #410 and #408 to be resolved. |
neutrinoceros
added a commit
to neutrinoceros/unyt
that referenced
this issue
Apr 8, 2023
neutrinoceros
added a commit
to neutrinoceros/unyt
that referenced
this issue
Apr 10, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
I would not expect Kelvin and degree Celsius to compare equal, yet this is the current result of
Unit.__eq__
What I Did
raises
AssertionError
Note that on the main branch (unyt 3.0, using NEP 18), this is breaking array comparison
I think the correct solution is to include
Unit.base_offset
in the comparison routine, but I'm not 100% certain.The text was updated successfully, but these errors were encountered: