-
Assume a dataset spread across many files and you want to read
How can this be achieved with uproot.iterate()? I came up with this non-optimal work-around:
Is there a more elegant solution? |
Beta Was this translation helpful? Give feedback.
Answered by
jpivarski
Sep 24, 2024
Replies: 1 comment 2 replies
-
What you've described is a reasonable way to go about it. You probably want to set |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I missed the fact that it was the same files, but different TTrees. If you want to ensure that you open the files only once, use uproot.TTree.iterate instead of uproot.iterare. This involves more bookkeeping, as you have to uproot.open each file manually.