-
Notifications
You must be signed in to change notification settings - Fork 29
Add interactive -i flag to k4run. #342
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks very useful indeed. I think it would need some documentation on how to kick off Gaudi after inspection.
I don't understand very well the purpose of this. All the options of the algorithms will be printed before running, and there is python -m pdb $(which k4run) steering.py
...
b 286
c
p opts_dict does what I think you want to do? There is |
This is modeled after similar functionality available at ATLAS. It's As to --dry-run: the value of dumps decreases as the complexity of the pdb could be used here, i guess, but it's not as convenient. In practice, i added this in the process of debugging a tricky Gaudi |
I like the What might be useful is another small utility function that kicks off the main gaudi loop after people are done inspecting and potentially fixing things up immediately, I think. But that can also be done later, if and once more people want to have it. |
With -i, k4run will start a Python command loop after reading the configuration file, allowing one to inspect the configuration interactively. This is sometimes useful for debugging.
d690bdf
to
270c947
Compare
Resolved conflict and squashed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For me this is good to be merged.
Can you add in
This is what happens when one leaves the interpreter. |
Co-authored-by: Andre Sailer <[email protected]>
With -i, k4run will start a Python command loop after reading the configuration file, allowing one to inspect the configuration interactively. This is sometimes useful for debugging.
BEGINRELEASENOTES
ENDRELEASENOTES