-
Notifications
You must be signed in to change notification settings - Fork 17
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
Should a PortnameSpace
be automatically not required if all of its ports are not required either
#174
Comments
The dots are supported, it is just working slightly differently than you anticipated. The dot is interpreted as a namespace separator, so the line
If you would have passed the inputs |
Great. This is in fact a useful functionality and what I was originally expected from a dot (except I missed the detail about the |
I think it is very useful to be able to implicitly create namespaces through the use of dots, instead of being forced to create them explicitly. However, it then becomes difficult to warn the user, that any keywords that are passed, such as |
Agreed. In fact, the only problem with this is the |
The problem is that currently the namespace itself also has a |
I support this view, that we just inherit. The namespace is probably useless without ports and should also follow their property. If just one port is required, we demand that the namespace is as well. |
PortnameSpace
be automatically not required if all of its ports are not required either
If one defines
spec.input('somename.someothername', required=False)
in aWorkChain
and one do not supply that input, it throws and error that it is required. Replacing it tospec.input('somename_someothername', required=False)
fixes the problem. Is there a reason for not supporting dots in the name? If so, I guess we should throw another error (if that is possible).The text was updated successfully, but these errors were encountered: