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

simple_example.py does not work for coffea CalVer #35

Open
kpedro88 opened this issue Oct 8, 2024 · 1 comment
Open

simple_example.py does not work for coffea CalVer #35

kpedro88 opened this issue Oct 8, 2024 · 1 comment

Comments

@kpedro88
Copy link
Contributor

kpedro88 commented Oct 8, 2024

The provided simple_example.py fails immediately in CalVer:

Traceback (most recent call last):
  File "/srv/simple_example.py", line 4, in <module>
    from coffea import hist, processor, nanoevents
ImportError: cannot import name 'hist' from 'coffea' (/usr/local/lib/python3.11/site-packages/coffea/__init__.py)

I'm not sure if there's a standard conditional import statement to get around this or if it's even desirable to maintain the example for both 0.7 and CalVer.

@lgray
Copy link
Contributor

lgray commented Oct 8, 2024

Thanks for the catch - I had converted it a long time ago and tested it but never pushed it!
Will get to it.

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

2 participants