Skip to content
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

comparing positive and negative angles in degrees_east #119

Open
dcherian opened this issue Jul 8, 2021 · 1 comment
Open

comparing positive and negative angles in degrees_east #119

dcherian opened this issue Jul 8, 2021 · 1 comment

Comments

@dcherian
Copy link

dcherian commented Jul 8, 2021

from cf_xarray.units import units

220 * units.degrees_east == (-140 * units.degrees_east)

is False. Can this be True instead?

@dcherian dcherian changed the title comparing positive and negative angles comparing positive and negative angles in degrees_east Jul 8, 2021
@jthielen
Copy link
Collaborator

jthielen commented Jul 8, 2021

This would be a good thing to ask upstream in Pint! I'm not aware of any modular arithmetic support, but I definitely see something like this being useful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants