Skip to content

Conversation

@RogerJanusiak
Copy link
Collaborator

When there is no data for a root file that does not use iterator it gives a gross error that Is not easy to understand. This way when there is no data in the file it gives error that makes it clear that is the problem.

@RogerJanusiak
Copy link
Collaborator Author

To do testing for this this file can be used: /data/rjanusia/IrisHep/DAOD_LLP1_noDATA.outputLLP1.root"

if arrays:
awk_arrays[sample] = ak.concatenate(arrays)
else:
raise RuntimeError(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This would be more of a ValueError

list(iterators)
) # return array

arrays = list(iterators)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should rename this var to something like iterator_list, which would make more sense

@ArturU043
Copy link
Collaborator

Yesterday, there was a specific issue in af Uchicago for accessing /data
We should make sure what was the error cause instead of raising this specific one.

@ArturU043
Copy link
Collaborator

Maybe we should add a raise error test in test_materialization?

@ArturU043
Copy link
Collaborator

Related to #21

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

Successfully merging this pull request may close these issues.

3 participants