umami-hep / atlas-ftag-tools

Python tools for ATLAS FTAG
2 stars 17 forks source link

Force reduction of `num_jets` in `H5Reader.stream` #22

Closed afroch closed 1 year ago

afroch commented 1 year ago

Currently, the H5Reader.stream function takes the number of jets which are to be loaded from a file as input. If this number is larger than the available number of jets in the file(s), an error is raised. It would be better if we could just print a warning and set the number of requested jets to the maximum available jets in the file(s).