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

Require an input file #37

Merged
merged 2 commits into from
Oct 4, 2024
Merged

Require an input file #37

merged 2 commits into from
Oct 4, 2024

Conversation

jmcarcell
Copy link
Contributor

@jmcarcell jmcarcell commented Jun 24, 2024

since it's not going to run without but then you'll still have to wait for DD4hep to load the geometry before failing.

BEGINRELEASENOTES

  • Print warning on missing input file

ENDRELEASENOTES

Copy link
Collaborator

@Zehvogel Zehvogel left a comment

Choose a reason for hiding this comment

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

Unfortunately this breaks k4run --help CLDReconstruction.py

To solve this in a satisfying we would have to check if there was an input file, after arguments were parsed and before the services are instantiated and then return early. And returning early without killing k4run. Maybe we can use an exception for that?

@jmcarcell
Copy link
Contributor Author

Indeed, I'm not sure how that would be done, for now I change it to printing a warning.

Copy link
Collaborator

@Zehvogel Zehvogel left a comment

Choose a reason for hiding this comment

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

LGTM! 👍

@Zehvogel Zehvogel merged commit d2428a6 into main Oct 4, 2024
5 of 7 checks passed
@Zehvogel Zehvogel deleted the require-argument branch October 4, 2024 10:31
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