-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Add wildcards to generated _cfi.py files #44013
Conversation
The first wildcard denoted in a ParameterSet descriptions will be added to the _cfi.py file via the allowAnyLabel_ mechanic.
cms-bot internal usage |
please test |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-44013/38939
|
A new Pull Request was created by @Dr15Jones for master. It involves the following packages:
@makortel, @Dr15Jones, @smuzaffar can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
@cms-sw/hlt-l2 FYI this will change the _cfi.py files for any module which declares a wildcard for a parameter label. This will now add a line to the _cfi.py configuration starting with |
Sorry, the PR description is too terse for me to understand. |
So previously, if the edm::ParameterSetDescription desc;
desc.addOptional<unsigned>("p_uint_opt", 0);
desc.addWildcard<int>("*"); The module declaration in the _cfi.py file would only contain p_uint_opt = cms.uint32(0) but with this change it would become p_uint_opt = cms.uint32(0),
allowAnyLabel_ = cms.optional.int32 |
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-0f442f/37554/summary.html Comparison SummarySummary:
|
@Martin-Grunewald Do you have any further comments? |
I do not understand the above example line
Shouldn't that be
? In any case, the line:
would be interpreted as a parameter of name So not useable at HLT, but also, so far we did not encounter an issue with the existing cms.optional (ie, ignoring seems fine?) |
Arg, you are right. I meant to use in the example desc.add<unsigned>("p_uint_opt", 0); but the lines dealing with |
Thanks @Martin-Grunewald |
+core |
This pull request is fully signed and it will be integrated in one of the next master IBs (tests are also fine). This pull request will now be reviewed by the release team before it's merged. @sextonkennedy, @rappoccio, @antoniovilela (and backports should be raised in the release meeting by the corresponding L2) |
The last test showed the usual |
@Martin-Grunewald on a related note, do you know how the ConfDb entries derived from _cfi.py files are actually handled? Does the code look at the _cfi.py as a text file or does it load it into python and then interrogate the python object? Thanks. |
+1 |
It loads it into python and goes from there. |
PR description:
The first wildcard denoted in a ParameterSet descriptions will be added to the cfi.py file via the allowAnyLabel mechanic.
PR validation:
Framework unit tests pass.