-
Notifications
You must be signed in to change notification settings - Fork 83
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
Feat: pop None inputs specified in overrides #1022
base: main
Are you sure you want to change the base?
Conversation
Hi @mbercx @sphuber , it is still somehow draft mode, but I think the basics are there. It works nicely for the test I have written. The limitation of course is that it cannot pop keys within Dict inputs (but I guess that's fine?). I'd love to have your inputs and thoughts. Fun note: the decorator comes actually from a question to ChatGPT+Copilot, as I just bought it and I was hyper-curious to see the capabilities. Impressive to see what one can achieve with a couple of questions! |
cc5ea02
to
75ab490
Compare
Fixes #653 Add the possibility of popping input namespaces by specifying None in the override for the specific namespace. A decorator is added that generalize the concept to any implementation of get_builder_from_protocol.
75ab490
to
f6623b0
Compare
Thanks @bastonero! But I'm afraid at first glance I'm not too happy with the solution provided by ChatGPT. ^^ Having to wrap every Rough outline for what I was thinking (untested or well thought through): Ideally, we'd first extend the protocol concept to our
This limitation is not so nice, I think. I should be able to "unset" an input as well. Even though you can probably always just set the input you want instead, sometimes the final inputs won't make sense to a user. An example would be EDIT: I'd be happy to work on this, but am currently still too bogged down with other tasks to dedicate any serious time to |
Hi @mbercx , thanks for the feedback! The idea behind this implementation is that you might have a workflow that would perform optional steps. For instance, the PwRelaxWorkChain by default would perform the |
Fixes #653
Add the possibility of popping input namespaces by specifying None in the override for the specific namespace. A decorator is added that generalize the concept to any implementation of get_builder_from_protocol.