-
Notifications
You must be signed in to change notification settings - Fork 26
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
k4run: allow addition of additional parameters from steering files #134
Conversation
@hegner here the PR I mentioned |
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.
Thanks. Looks like a rather annoying bug you fixed. Solution is nice.
And it seems the failing builds are unrelated |
This PR shouldn't have been merged. This is the list of PRs with fixes for what this PR broke:
If I'm not wrong the restructuring of the file loading wasn't needed for this PR which was a relatively simple change so it should have been in a different PR. |
FYI, this PR broke running fccrun with the following macro: https://github.com/BrieucF/LAr_scripts/blob/main/FCCSW_ecal/runTopoAndSlidingWindowAndCaloSim.py
Code works fine with Aug10 nightly but fails with Aug11 one |
I can reproduce that bug, but it looks like a weird quirk of the combination of python list comprehensions and Previously we passed I will look for a fix tomorrow. |
@giovannimarchiori can you check if the change to k4run in #140 fixes your problem? |
Hi @Zehvogel
|
@giovannimarchiori It looks like your file has a property of the same name multiple times and we try to add the argument to set it more than once. I think this was implicitly filtered out in the old implementation by Can you provide us with complete reproduction instructions in #141? In particular how to set up the environment? For me your options file already fails with
|
Supersedes #131
With this change you can add a parameter from a steering file by simply doing something like
this is achieved by wrapping the python
argparse.ArgumentParser
into a singleton to share it with the steering file without any global variable magic. I also got rid of the usage of theApplicationMgr
global variable in k4run.BEGINRELEASENOTES
ENDRELEASENOTES