-
Notifications
You must be signed in to change notification settings - Fork 89
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
Support for physical units through pint #2788
Comments
Duplicate of #2468! :) |
Ok! I thought about opening a new one, since there was not mention to Pint in #2468. |
That was probably in private conversations, then: we're thinking of using a Pint UnitRegistry as a source of truth about units and their relationships, but some of the handling would have to be manual. (For example, we have to implement reducers ourselves. If an array has units, Thus, we're recognizing Pint as the standard way to express units, to the exclusion of any other libraries that might do the same thing, and we'll try to reuse code in Pint as much as possible (e.g. in unit conflicts, which of the two should be converted to the other, and what do we multiply by to get that conversion?), but there will be limits and some things will need to be computed by hand in Awkward. |
Sounds great! Thanks a lot for elaborating. Looking forward to it! |
Description of new feature
pint is a nice Python units library with built-in support for NumPy arrays and other integrations. Would be nice to be able to propagate units with Awkward arrays too. Is there any interest/plan to have this in the future?
The text was updated successfully, but these errors were encountered: