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
Configuration parameter copy and modify functions extended #13224
Configuration parameter copy and modify functions extended #13224
Conversation
The `clone` and `Modifier.toModify` methods have been extended to allow further modifications to the parameters after they have been copied. 1) Specify `None` as the value of the parameter will cause the parameter to be removed from the configuration 2) Parameters within embedded PSets can now be modified using a python dict as the value. The keys of the dictionary are the parameter names and the values are the new values to use. The `clone` and `Modifier.toModify` both call the same helper function to do the work of modifying the copied parameters.
A new Pull Request was created by @Dr15Jones (Chris Jones) for CMSSW_8_0_X. It involves the following packages: FWCore/ParameterSet @cmsbuild, @smuzaffar, @Dr15Jones, @davidlange6 can you please review it and eventually sign? Thanks. cms-bot commands are list here #13028 |
please test |
+1 |
The tests are being triggered in jenkins. |
This pull request is fully signed and it will be integrated in one of the next CMSSW_8_0_X IBs after it passes the integration tests. This pull request requires discussion in the ORP meeting before it's merged. @slava77, @davidlange6, @Degano, @smuzaffar |
-1 In file included from /afs/cern.ch/cms/sw/ReleaseCandidates/vol1/slc6_amd64_gcc493/external/boost/1.57.0-kpegke/include/boost/smart_ptr/detail/spinlock_pool.hpp:25: In file included from /afs/cern.ch/cms/sw/ReleaseCandidates/vol1/slc6_amd64_gcc493/external/boost/1.57.0-kpegke/include/boost/smart_ptr/detail/spinlock.hpp:50: In file included from /afs/cern.ch/cms/sw/ReleaseCandidates/vol1/slc6_amd64_gcc493/external/boost/1.57.0-kpegke/include/boost/smart_ptr/detail/spinlock_sync.hpp:18: In file included from /afs/cern.ch/cms/sw/ReleaseCandidates/vol1/slc6_amd64_gcc493/external/boost/1.57.0-kpegke/include/boost/smart_ptr/detail/yield_k.hpp:28: In file included from /afs/cern.ch/cms/sw/ReleaseCandidates/vol1/slc6_amd64_gcc493/external/boost/1.57.0-kpegke/include/boost/predef.h:16: /afs/cern.ch/cms/sw/ReleaseCandidates/vol1/slc6_amd64_gcc493/external/boost/1.57.0-kpegke/include/boost/predef/other.h:11:10: fatal error: cannot open file '/afs/cern.ch/cms/sw/ReleaseCandidates/vol1/slc6_amd64_gcc493/external/boost/1.57.0-kpegke/include/boost/predef/other/endian.h': Bad address #include ^ Error: rootcling: compilation failure (tmp/slc6_amd64_gcc493/src/L1Trigger/L1TGlobal/src/L1TriggerL1TGlobal/a/L1TriggerL1TGlobal_xrb0c432e16c_dictUmbrella.h) gmake: **\* [tmp/slc6_amd64_gcc493/src/L1Trigger/L1TGlobal/src/L1TriggerL1TGlobal/a/L1TriggerL1TGlobal_xr.cc] Error 2 >> Compiling /tmp/cmsbuild/workspace/ib-any-integration/CMSSW_8_0_X_2016-02-07-2300/src/L1Trigger/L1TGlobal/src/CaloTemplate.cc you can see the results of the tests here: |
please test |
Configuration parameter copy and modify functions extended
I am afraid either this PR or #13220 broke things, eg, cmsDriver:
Could you please have a look? |
@Dr15Jones , I think both PR might have broke the IB. At least reverting this PR I am able to run wf 5.1,5.2,5.3 which were failing due to
so we shoudl revert this PR. I will check #13220 too |
@Dr15Jones , it is this PR which broke the IB. reverting it I can also run 140.2 which was failing due to
|
@davidlange6 , we might not get a fix for this before 11h00 IB, so I propose to revert this PR |
I confirm that #13216 does fix the step1 errors if 5.1,5.2 and all other. 140.2 and other step2 errors are still there |
ok, could you revert it?
|
err- sorry, I misunderstand
|
No, even after merging #13216 step2 of many workflows (140.2 and others) will be broken. |
-1 Tested at: f574c22 ---> test runtestSimCalorimetryHGCalSimProducers had ERRORS you can see the results of the tests here: |
I know what the problem is with
And can fix it. Matti's other change to use I'll get a fix for the above this morning (although I'm at home sick so might not be quite as fast as usual). |
#13244 includes and fixes this one |
The
clone
andModifier.toModify
methods have been extended to allow further modifications to the parameters after they have been copied.None
as the value of the parameter will cause the parameter to be removed from the configurationnames and the values are the new values to use.
The
clone
andModifier.toModify
both call the same helper function to do the work of modifying the copied parameters.