Skip to content

Reading multiple trees using uproot.iterate() #1299

Answered by jpivarski
ligerlac asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@ligerlac
Comment options

@jpivarski
Comment options

Answer selected by ligerlac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants