Skip to content
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

Version compatibility updates to corrections.py #87

Merged
merged 5 commits into from
Jan 31, 2024

Conversation

alejands
Copy link
Collaborator

Update corrections.py to run with uproot package (version 4.7.3) instead of uproot3 package. Required common.py to be rerun with new coffea version so the proper data types for newer coffea/uproot versions are saved.

Create a new common.coffea file that is compatible with updates to
coffea and uproot.
Updated to use uproot package from "import uproot" (uproot 4.7.3) rather
than "import uproot3". Includes some corrections to how histograms that
are loaded from uproot are read.
@alejands alejands linked an issue Jan 23, 2024 that may be closed by this pull request
@alejands alejands mentioned this pull request Jan 23, 2024
Remove the "test" prefix from the output coffea files generated by
corrections.py and ids.py.
@alejands alejands marked this pull request as ready for review January 23, 2024 23:19
@alejands alejands changed the title UL updates to corrections.py Version compatibility updates to corrections.py Jan 23, 2024
Updated code obtained from jennetd/hbb-coffea repository on GitHub.
https://github.com/jennetd/hbb-coffea/blob/master/boostedhiggs/corrections.py
https://github.com/jennetd/hbb-coffea/blob/master/boostedhiggs/data/msdcorr.json

Renamed the copied function to match convention used in decaf.

Processor scripts were updated to use the new function, but still
require other compatibility updates to test.
@mcremone mcremone merged commit e2ed133 into mcremone:UL Jan 31, 2024
@alejands alejands deleted the UL_corrections-py branch February 1, 2024 18:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

UL: Corrections
2 participants