-
Notifications
You must be signed in to change notification settings - Fork 100
fix: keep track of buffer key instead of field path for VirtualNDArrays & PlaceholderArrays #3751
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
base: main
Are you sure you want to change the base?
Conversation
|
The documentation preview is ready to be viewed at http://preview.awkward-array.org.s3-website.us-east-1.amazonaws.com/PR3751 |
Codecov Report❌ Patch coverage is
Additional details and impacted files
🚀 New features to boost your workflow:
|
ianna
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pfackeldey - Looks great! Thanks for implementing it. It does make more sense to use the buffer keys. Are you planning to add the tests? Thanks.
|
Do you have a concrete suggestion what to test here? Also, I was wondering if it makes sense to forward the |
|
I think it definitely does make sense to forward the key for things that keep the array "intact" like |
yeah, I was hoping for input as I am unsure here. I just forwarded it everywhere now, and I think that's reasonable... also ".T" is useless for 1D arrays, getitem's are usually a view into the original buffer anyways (except for fancy indexing/slicing), byteswap is the same data but different interpretation... so all-in-all that led me to forwarding it everywhere. |
|
I honestly don't know if |
|
Question, does the fact that you are changing it for placeholders have any implications on uproot.dask/dask-awkward? |
It should not. the field path was only used for better error messages inside the PlaceholderArray. We can give the same useful errors now, but with the buffer key instead. |
There's more information in the buffer key than in the field path. Also, 3rd party libraries (like coffea) implement their own buffer keys, which makes this a more useful variable to keep track of than our manually build field path.