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

uproot.iterate sets chunk size to 1 when unvalid pattern in filter_name #1374

Open
ArturU043 opened this issue Feb 4, 2025 · 0 comments
Open
Labels
bug (unverified) The problem described would be a bug, but needs to be triaged

Comments

@ArturU043
Copy link

ArturU043 commented Feb 4, 2025

Definition

Entering a nonexistent branch name / pattern in the filter_name argument causes the function to open and load the file data many times with a step_size automatically set to 1.
The number of steps to load the file is equal to the number of rows in the file. This leads to a very long execution time for large files.

This situation can happen frequently when a typo is inserted.

Code example

uproot.iterate-bug.ipynb

Versions

Uproot 5.5.1
Python 3.11.9

@ArturU043 ArturU043 added the bug (unverified) The problem described would be a bug, but needs to be triaged label Feb 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug (unverified) The problem described would be a bug, but needs to be triaged
Projects
None yet
Development

No branches or pull requests

1 participant