Skip to content

simple_example.py does not work for coffea CalVer  #35

@kpedro88

Description

@kpedro88

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions