-
Notifications
You must be signed in to change notification settings - Fork 200
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
workchain step called run #4173
Comments
Thanks for the report @BeZie . This is actually not a bug, so I have relabeled it. The |
This applies not only to I think simply adding an underscore doesn't really protect from this, and adding a more complicated prefix (like As an alternative, could we add a check to |
Very good point @greschd and actually that shows that prefixing it with something like |
The problematic methods will always be those of the "base" |
Nope, also from its base class
Here I agree, we should not police if a subclass is overriding something of another work chain subclass. |
Yup, gotcha - I meant
I agree on it being cumbersome, but we can make it not error prone by comparing against the generated list. Since AiiDA pins its The question here is whether we want to take the burden of maintaining this list ourselves - and hopefully enforcing some restraint in adding/blacklisting new methods, or shift that down to the plugin developer who might have their workchains broken because they used a method name that later gets used by the |
This was solved in #5779 where important public methods of the |
Describe the bug
If a step in aworkchain is called run(self), the workchain will not work probably e.g. will finish after this step. Workaround: do not call the step run :)
The text was updated successfully, but these errors were encountered: