-
Notifications
You must be signed in to change notification settings - Fork 11
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
Hardcoded extension ".root" in _get_gbasf2_dataset_query in b2luigi/batch/processes/gbasf2.py #180
Comments
I'm not 100% sure, can you clarify
Which is correct, the first glob-expression or the second glob-expression? I looked the b2luigi code for output_file_stem, output_file_ext = os.path.splitext(output_file_name)
# [...]
dataset_query_string = \
f"{output_lpn_dir}/{self.gbasf2_project_name}/sub*/{output_file_stem}_*{output_file_ext}" We didn't hardcode os.path.splitext("/path/to/filename.udst.root")
Out[11]: ('/path/to/filename.udst', '.root') which results in the glob pattern Btw, from reading the release notes I thought that gbasf2 puts udst and mdst files into separate subdirectories, which is why I had created issue #58 in the past, but it seems that this is not the case anymore. I never worked with udst/mdst files and currently am not even using gbasf2 actively anymore. Actually I don't have time to work on b2luigi due to my thesis but this seems like it should be easy to fix. Thanks for reporting 🙏 . |
I created a hotfix in pull request #181, but I didn't test that at all and don't have time for that right now, so I would wait for your feedback on that and if it works merge. I'd also be happy if you code check my code if it makes sense. |
When using b2luigi with gbasf2 jobs with udst outputs, these will have the ending ".udst.root". Then the download gbasf2_data_query will be faulty:
f"sub*/{output_file_stem}_*{output_file_ext}"= sub*/filename.udst_*.root
instead of
"sub*/filename_*.udst.root"
. This will cause the download to fail.The text was updated successfully, but these errors were encountered: