-
Notifications
You must be signed in to change notification settings - Fork 85
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 units #2468
Comments
This sounds like a good use-case for #1391. That would propagate units, though it would not convert them. Or maybe it could be some custom behaviors? https://awkward-array.org/doc/main/reference/ak.behavior.html That would even make it possible to convert appropriately. (The I can try to write a prototype. This may be complex enough that we should build it in, rather than making users implement it—so the new feature would be a new set of behaviors in src/awkward/behaviors. It would be the only |
@gpiert thanks for opening #2788 regarding this! It's planned that we add support for units through |
Cross posted from #2788 (comment):
|
Description of new feature
(Apologies if this is already supported in some way I didn't find it in the docs or in the suggested links when opening the issue)
I am working with a data format in which each event is a row in a table and it's a ragged array.
For context, this is how each event is written to file:
As you can guess:
I am currently opening this file as a dictionary of numpy arrays and building 3 astropy QTables: "event_table", "A_table", "B_table". Of course from there one can play around with masking, filtering, etc...so my (immediate) use case is kind of fixed.
Said this, I cannot stop thinking that one of these files is basically an " awkward table"!
At the same time:
Soooo....what about adding units, maybe compatible with astropy quantities or with a similar object? 😄
The text was updated successfully, but these errors were encountered: