Skip to content

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

Open
@ArturU043

Description

@ArturU043

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug (unverified)The problem described would be a bug, but needs to be triaged

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions