-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Notes when working through the lesson #1
Comments
@mattbellis Hooking you in here -- "treename" argument doesn't work anymore in "from_root". |
@alexander-held @oshadura Can you help with the last point? What should be changed in |
Hi, something like the following should work: agc_events = NanoEventsFactory.from_root({'root://eospublic.cern.ch//eos/opendata/cms/upload/od-workshop/ws2021/myoutput_odws2022-ttbaljets-prodv2.0_merged.root': 'events'}, schemaclass=AGCSchema).events() The tree name moves and becomes part of the file name in this dictionary structure You might need other changes in addition to this depending on what you want to run subsequently. The latest version of |
Thanks @alexander-held That gives me a different error:
If many other changes are needed, we could eventually stick to an older version of coffea although it would be nice to have it all updated. These are lessons for a workshop at the beginning of January, probably before the AGC updates. |
It sounds plausible to me that this custom schema would need to be updated for I should note that this schema is used in conjuncture with the custom ntuple files we derived from the public MiniAODs before we created NanoAODs. In general I would recommend updating the setup to instead use the NanoAOD version, which also means you can use the The changes from ntuple to NanoAOD setup came in the AGC repo via tag 1.0.0 and more specifically mostly via this PR: iris-hep/analysis-grand-challenge#102. We now have two branches in our AGC repository: The updates to go from the ntuple-based to the NanoAOD-based setup should not be too large. That however still will require additional work to also play nicely with |
@katilp I just tried this but in the "Jupyter and coffea setup", instead of
I installed the older version of coffea
and I was at least able to open the file. I have to run out so I don't have time to check the whole thing, but given that |
@mattbellis Yes, I agree, we can use the older version |
FYI This is a very easy fix. There was an interface change in BaseSchema in coffea 2023. All you need to do make This was required due to the rather different way the new nanoevents backend works. Please open issues on the coffea github for stuff like this in the future and I'll attend to it more promptly! It is very likely we can make coffea 2023 function for your workshop, but as in the announcement for analysis users if you're trying to do anything where you need correct results now sticking with 0.7 is probably a better way to go. There's always another workshop. :-) |
Just taking notes of what I observe, most can be ignored but the 03 error needs action
01-introduction
02-analysislesson
03-coffea
agc_events = NanoEventsFactory.from_root('root://eospublic.cern.ch//eos/opendata/cms/upload/od-workshop/ws2021/myoutput_odws2022-ttbaljets-prodv2.0_merged.root', schemaclass=AGCSchema, treepath='events').events()
The text was updated successfully, but these errors were encountered: