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

how to create alternative configs with a PSet switch #25270

Open
slava77 opened this issue Nov 17, 2018 · 6 comments
Open

how to create alternative configs with a PSet switch #25270

slava77 opened this issue Nov 17, 2018 · 6 comments

Comments

@slava77
Copy link
Contributor

slava77 commented Nov 17, 2018

This is in connection with #24918 and is related to use cases of config switches https://twiki.cern.ch/twiki/bin/view/CMSPublic/SWGuideConfigurationValidationAndHelp#A%20%22Switch%22

The desired functionalities are:

@slava77
Copy link
Contributor Author

slava77 commented Nov 17, 2018

assign core

@cmsbuild
Copy link
Contributor

New categories assigned: core

@Dr15Jones,@smuzaffar you have been requested to review this Pull request/Issue and eventually sign? Thanks

@cmsbuild
Copy link
Contributor

A new Issue was created by @slava77 Slava Krutelyov.

@davidlange6, @Dr15Jones, @smuzaffar, @fabiocos, @kpedro88 can you please review it and eventually sign/assign? Thanks.

cms-bot commands are listed here

@Dr15Jones
Copy link
Contributor

@makortel suggestions?

@makortel
Copy link
Contributor

@slava77 We talked briefly with @Dr15Jones and think that your solution on the first bullet is the minimal that can be achieved (with the current API).

For the second bullet, we could think of adding a general mechanism for passing around metadata that would allow your example being written along

caseB = caseA.clone(**(caseA._aux()["switch_B"]))

with caseA._aux() being (e.g.)

dict(
    "switch_B" = dict(
        switch = "B",
        conf = cms.PSet(
            ba = cms.uint32(0),
            bb = cms.uint32(1)
        )
    )
)

such that the cfi generation will create the necessary python code to fill that. Slava, what do you think?

@slava77
Copy link
Contributor Author

slava77 commented Nov 19, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants