You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 21, 2022. It is now read-only.
I got access to a ROOT file that was generated making use of ROOT's RDataFrame feature. This file basically contains the constituents for each jet in an even, i.e., for each jet, there is an associated vector. It appears that RDataFrame converts the std::vector<std::vector<float> > type (which I'd expect for this kind of data) to some custom type vector<float,ROOT::Detail::VecOps::RAdoptAllocator<float> >, which apparently is not understood by uproot. If I'm trying to read one of those branches, I receive the following error message
ValueError: cannot interpret branch 'tjetSortClusNormByPt_pt' as a Python type
The text was updated successfully, but these errors were encountered:
ChristofSauer
changed the title
Issue with vector branches generated using ROOT's RDataFrame
Issue with vector branches generated using RDataFrame
Feb 3, 2022
The first thing is to try reading it in Uproot 4 (check your uproot.__version__; I'm guessing you're using Uproot 3 because you posted the issue here). The deserialization code was made a lot more general, and—fingers crossed—it might just work. If not, it will require some investigation...
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Dear All,
I got access to a ROOT file that was generated making use of ROOT's RDataFrame feature. This file basically contains the constituents for each jet in an even, i.e., for each jet, there is an associated vector. It appears that RDataFrame converts the
std::vector<std::vector<float> >
type (which I'd expect for this kind of data) to some custom typevector<float,ROOT::Detail::VecOps::RAdoptAllocator<float> >
, which apparently is not understood by uproot. If I'm trying to read one of those branches, I receive the following error messageThe corresponding infomration in the tree is
Is there some way to read this data using uproot?
The text was updated successfully, but these errors were encountered: