-
Notifications
You must be signed in to change notification settings - Fork 86
feat: add tree to virtual array conversion #1393
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
@pfackeldey - what is the plan for this PR? thanks! |
I think we were discussing with Peter to add some caching support. Uproot will deserialize each electron branch for example separately with its own offsets. All those will have the same |
Isn't there already some caching being done in Uproot? When trying to read the count_branch multiple times it should already be hitting the cache |
Yeah I need to try if it's hitting it, haven't done that yet. Will do today. Do you the best way to log that (the number of deserializations per branch)? |
I'm not sure. I've just skimmed the code since at some point I'll have to do that for RNTuples |
I'm not sure. I'm not a big fan of this implementation, but I also don't know how it can be done in a better way. I was hoping for some input here. |
updates: - [github.com/astral-sh/ruff-pre-commit: v0.11.4 → v0.11.5](astral-sh/ruff-pre-commit@v0.11.4...v0.11.5) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* Updated Pyodide version * Pinned chrome version * Changed chrome version * Try using node instead of chrome * Remove chrome-specific setup * Actually use Node * Go back to chrome
updates: - [github.com/astral-sh/ruff-pre-commit: v0.11.5 → v0.11.6](astral-sh/ruff-pre-commit@v0.11.5...v0.11.6) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
fix issue with empty big_endian array Co-authored-by: Ianna Osborne <[email protected]>
* safer branch title access * empty str -> None --------- Co-authored-by: Ianna Osborne <[email protected]>
* docs: add contributing guide * style: pre-commit fixes * Update CONTRIBUTING.md Co-authored-by: Andres Rios Tascon <[email protected]> * Update CONTRIBUTING.md Co-authored-by: Andres Rios Tascon <[email protected]> * Update CONTRIBUTING.md Co-authored-by: Andres Rios Tascon <[email protected]> * use pre-commit * build local documentation howto --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Andres Rios Tascon <[email protected]>
Hi @ianna, |
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 - Thanks! I would rather avoid duplicating the code. What was the reason for copying the form_with_unique_keys
utility function here? Thanks.
Needs: scikit-hep/awkward#3482 and thus a new awkward release |
This waits for scikit-hep/awkward#3364 (and a corresponding awkward release).
I may likely not have attempted the most optimal solution here. Happy for feedback & input.