Skip to content

Move get_alternate_file_uri from create_branch_map() into run()#89

Merged
nshadskiy merged 2 commits intomainfrom
fix-nanoaod-check-in-branch-map
Apr 29, 2026
Merged

Move get_alternate_file_uri from create_branch_map() into run()#89
nshadskiy merged 2 commits intomainfrom
fix-nanoaod-check-in-branch-map

Conversation

@moritzmolch
Copy link
Copy Markdown
Contributor

The get_alternate_uri function has been introduced with pull request #73 to find an URI, under which a NANOAOD file is accessible. The function has been executed in the create_branch_map method of CROWNRun, causing stat operations to be issued every time when create_branch_map is called for every NANOAOD file in the respective sample lists, even if the ntuple files are already present.

The execution of the get_alternate_uri function has been moved to run(). Now, the check for the existence of a NANOAOD file is only checked if the NANOAOD -> ntuple step is actually performed, i.e., only once when actually running the processing.

@moritzmolch moritzmolch requested a review from nshadskiy April 28, 2026 19:03
Copy link
Copy Markdown
Contributor

@nshadskiy nshadskiy left a comment

Choose a reason for hiding this comment

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

Thanks. Looks good to me.

@nshadskiy nshadskiy merged commit 1f03141 into main Apr 29, 2026
1 check passed
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.

2 participants