Is it possible to specify which TTree version to use when writing a new tree? #470
Unanswered
denehoffman
asked this question in
Q&A
Replies: 1 comment 4 replies
-
Version 20 of TTree is hard-coded in Uproot's writer (had to pick something), and while it would be possible to add code to skip some fields and make it version 19, that feels complicate the code, not to mention the interface (you'd have to specify the version somehow). But the error message is suggesting something worse: old versions of ROOT are supposed to be able to read new data because every file with a TTree in it should have a TStreamerInfo for that TTree version (same for all other classes). In the file that you've written, does f.file.show_streamers() not include TTree version 20? If it doesn't, that's bad news. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to read in data from an existing TTree, reformat/skim it down, and write it to a new TTree. The only problem is that my entire collaboration uses an outdated version of ROOT which apparently can't read version-20 TTrees:
The tree can be opened (in ROOT) just fine on my local computer running the latest ROOT. When I look at the input tree versions, I see that
so version-19 trees are fine, but the output trees have
and these ones can't be read by the collaboration's version of ROOT. Is there some way to specify using the previous version when writing?
Beta Was this translation helpful? Give feedback.
All reactions