Replies: 4 comments 10 replies
-
Hi Ali,The header-only is a part of awkward-cpp. Please check if it is installed. Thanks, Yana.
Sent from my iPhone
|
Beta Was this translation helpful? Give feedback.
-
Oh, it looks like a bug. Thanks for reporting it! I am constructing a path to the awkward/src/awkward/_connect/rdataframe/from_rdataframe.py Lines 51 to 59 in ae5923e |
Beta Was this translation helpful? Give feedback.
-
I think, an insufficient memory is a valid guess. You can try to monitor it to check it's limit on a file size for your computer. It may depend on what else you are running. The stack trace could provide more detailed information about it. |
Beta Was this translation helpful? Give feedback.
-
Indeed, I've tried to run it on a local copy of your file - it doesn't take long at all - it's not that large: In [1]: import ROOT
In [2]: import awkward as ak
In [3]: ROOT.ROOT.EnableImplicitMT(16)
Installed ROOT event loop hook.
In [4]: %%timeit
...: df3 = ROOT.RDataFrame("CollectionTree", "/Users/yana/Downloads/user.agarabag.34455039._000004.output.root")
...:
...:
The slowest run took 8.06 times longer than the fastest. This could mean that an intermediate result is being cached.
830 µs ± 1 ms per loop (mean ± std. dev. of 7 runs, 1 loop each) retrieving the columns takes a bit longer (the data is copied): In [7]: %%timeit
...: npy3 = ak.from_rdataframe(df3, columns=("DiTauJetsAuxDyn.ditau_pt", "EventInfoAuxDyn.mcEventWeights"), keep_order=True)
...:
...:
Warning in <TClass::Init>: no dictionary for class xAOD::EventFormat_v1 is available
Warning in <TClass::Init>: no dictionary for class ElementLinkBase is available
Warning in <TClass::Init>: no dictionary for class ElementLink<DataVector<xAOD::TruthParticle_v1> > is available
Warning in <TClass::Init>: no dictionary for class ElementLink<DataVector<xAOD::EventInfo_v1> > is available
Warning in <TClass::Init>: no dictionary for class ElementLink<DataVector<xAOD::TrackParticle_v1> > is available
Warning in <TClass::Init>: no dictionary for class xAOD::EventInfo_v1 is available
Warning in <TClass::Init>: no dictionary for class SG::AuxElement is available
Warning in <TClass::Init>: no dictionary for class SG::IAuxElement is available
Warning in <TClass::Init>: no dictionary for class xAOD::EventAuxInfo_v2 is available
Warning in <TClass::Init>: no dictionary for class xAOD::AuxInfoBase is available
Warning in <TClass::Init>: no dictionary for class xAOD::AuxContainerBase is available
Warning in <TClass::Init>: no dictionary for class ElementLink<DataVector<xAOD::TruthVertex_v1> > is available
Warning in <TClass::Init>: no dictionary for class xAOD::TruthParticleAuxContainer_v1 is available
Warning in <TClass::Init>: no dictionary for class xAOD::TruthParticle_v1 is available
Warning in <TClass::Init>: no dictionary for class xAOD::TauJet_v3 is available
Warning in <TClass::Init>: no dictionary for class ElementLink<DataVector<xAOD::Jet_v1> > is available
Warning in <TClass::Init>: no dictionary for class ElementLink<DataVector<xAOD::Vertex_v1> > is available
Warning in <TClass::Init>: no dictionary for class xAOD::DiTauJetAuxContainer_v1 is available
Warning in <TClass::Init>: no dictionary for class xAOD::DiTauJet_v1 is available
Warning in <TClass::Init>: no dictionary for class xAOD::ShallowAuxContainer is available
Warning in <TClass::Init>: no dictionary for class DataLink<SG::IConstAuxStore> is available
Warning in <TClass::Init>: no dictionary for class ElementLink<DataVector<xAOD::TruthEventBase_v1> > is available
Warning in <TClass::Init>: no dictionary for class SG::IAuxStore is available
Warning in <TClass::Init>: no dictionary for class SG::IConstAuxStore is available
Warning in <TClass::Init>: no dictionary for class SG::IAuxStoreIO is available
Warning in <TClass::Init>: no dictionary for class SG::IAuxStoreHolder is available
Warning in <TClass::Init>: no dictionary for class xAOD::IParticle is available
Warning in <TClass::Init>: no dictionary for class DataLinkBase is available
5.21 s ± 90.3 ms per loop (mean ± std. dev. of 7 runs, 1 loop each) and it produces some result: In [10]: print(ak.flatten(npy3["DiTauJetsAuxDyn.ditau_pt"]))
[0, 2.83e+04, 2.17e+04, 4.03e+04, 0, ..., 0, 2.29e+04, 5.45e+04, 2.6e+05] I'm using different versions though: >>> ROOT.__version__
'6.28/04'
>>> ak.__version__
'2.4.5'
>>>
|
Beta Was this translation helpful? Give feedback.
-
Hi,
I’m trying to convert RDataFrame to awkward array and i seem to get a error with ak.from_rdataframe. Basically i have ROOT and Awkward downloaded via conda and when i run the following:
i get the below error:
I wanted to know if anyone knows what could be causing this error? i have tried removing and re downloading awkward but that hasn’t helped. The “header-only” dir indeed does not exist but I’m not sure why. also awkward functions normally its only when calling ak.from_rdataframe that i get this error.
ROOT Version: 6.28.4
awkward version: 2.5.0
Beta Was this translation helpful? Give feedback.
All reactions