Skip to content

Reading doubly-ragged data in coffea #932

Discussion options

You must be logged in to vote

Thank you @lgray for helping debug this issue, I'm just going to summarize the resolution here for any future reader.

Update to a more recent coffea version

The last stable versions of coffea (v0.7.2[0-2]) use a version of uproot/awkward that is unable1 to implement lazy-loading of doubly-ragged arrays. The easiest way around this issue is to update to a pre-release version of coffea pip install --pre --upgrade coffea remembering to also update the processor(s) to reflect the change that the object provided to def process(self, events) will be a dask-awkward array rather than a simple awkward array. This basically amounts to adding a .compute() call where-ever you need the values (e.g. li…

Replies: 3 comments 11 replies

Comment options

You must be logged in to vote
2 replies
@tomeichlersmith
Comment options

@lgray
Comment options

Comment options

You must be logged in to vote
1 reply
@tomeichlersmith
Comment options

Comment options

You must be logged in to vote
8 replies
@tomeichlersmith
Comment options

@tomeichlersmith
Comment options

@lgray
Comment options

@tomeichlersmith
Comment options

@lgray
Comment options

Answer selected by tomeichlersmith
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants