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

python3 compatibility & coffea #6

Open
IzaakWN opened this issue Feb 5, 2021 · 2 comments
Open

python3 compatibility & coffea #6

IzaakWN opened this issue Feb 5, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@IzaakWN
Copy link
Collaborator

IzaakWN commented Feb 5, 2021

Since coffea is very similar to nanoAOD-tools, it would be nice to have this option in the future to speed up processing of nanoAOD files.

I have looked at it, but the main difficulty at the moment is that in CMSSW I have not found a neat way to use python3 with ROOT. Maybe it's first necessary to divorce TauFW from CMSSW (see issue #5), and/or some tricks are needed to set the ROOT version with for example

source /cvmfs/sft.cern.ch/lcg/views/LCG_96python3/x86_64-centos7-gcc8-opt/setup.sh

In any case, the code like pico.py and common help functions should be made python3 compatible in preparation by using

from __future__ import print_function

and fixing all print statements without parentheses, as well as replacing iteritems() with items(), etc.

@IzaakWN IzaakWN added the enhancement New feature or request label Feb 5, 2021
@IzaakWN IzaakWN changed the title python3 compatibility & coffea python3 compatibility & coffea Feb 5, 2021
@IzaakWN
Copy link
Collaborator Author

IzaakWN commented Aug 31, 2021

Having python3 would also allow for easy use of correctionlib, which will become CMS standard soon:
https://github.com/cms-nanoAOD/correctionlib

oponcet pushed a commit to oponcet/TauFW that referenced this issue Nov 8, 2023
@IzaakWN
Copy link
Collaborator Author

IzaakWN commented May 3, 2024

IzaakWN added a commit that referenced this issue May 15, 2024
Hackathon + RDataframe debugging
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant