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

flashggFinalFit/makeEffAcc.py uses python3 syntax #17

Open
andreh7 opened this issue Aug 23, 2016 · 0 comments
Open

flashggFinalFit/makeEffAcc.py uses python3 syntax #17

andreh7 opened this issue Aug 23, 2016 · 0 comments

Comments

@andreh7
Copy link

andreh7 commented Aug 23, 2016

There are some dict initializations in this file which rely on python3 syntax:

    slurpDic = { name : ws.data(name+suffix) for name in procs}
    # filter out histos that are null pointers
    return { k : v for k, v in slurpDic.iteritems() if v }

and

   integrals = { proc : h.sumEntries() for (proc, h) in histos.iteritems()}

it is not clear how to get python3 on lxplus other than installing it in one's home directory.

Can these be changed to python2 syntax:

    slurpDic = dict([ (name, ws.data(name+suffix)) for name in procs])

    # filter out histos that are null pointers
    return dict([ (k,v) for k, v in slurpDic.iteritems() if v ])

and

   integrals = dict([ (proc,h.sumEntries()) for (proc, h) in histos.iteritems()])

?

We can provide a pull request for these if wanted.

federica1998 pushed a commit to federica1998/flashggFinalFit that referenced this issue Apr 15, 2024
Updates for running Impacts on anomalous couplings
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

No branches or pull requests

1 participant