-
Notifications
You must be signed in to change notification settings - Fork 37
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
Why using get_builder_from_protocol
in AiiDA tutorials?
#467
Comments
Hi @bastonero! Thanks for the feedback. It's definitely fair that some of the current tutorials are still very A couple of comments:
Some thoughts on the common questions:
As in where are they defined? The protocol files, unless an inputs is updated dynamically at runtime (e.g. error handler). Of course, the protocol files are merged throughout the whole stack of processes of a work chain, so I understand it's not always trivial to figure out where an input comes from if you're not very familiar with a work chain. At least according to the principles in aiidateam/aiida-quantumespresso#902 they now aren't specified in the work chain logic as well.
Easiest is to simply return the
I think adding a better description of the work chains (to the class docstring?) is probably a good idea. But this of course depends heavily on the plugin developer. Or we can think of some other approach that uses the outline and the docstrings of each method in the outline? 🤔 |
Thanks @mbercx for the reply!
Indeed I think this would be super great to show, so that one can just load the Workflow/Calculation and print its input structure. Currentlly I have the feeling that a new user wouldn't know how to know extra inputs, especially if it is not either a QE or VASP related plugin. (of course the best way would be to consult the specific plugin docs, but having an idea from the terminal I guess would be helpful) Do you think this could be an improvement?
Absolutely. But returning the |
For sure! I'd show that feature in the tutorials. Looking at an empty
We can see some structure of the inputs, but e.g. it might not be immediately obvious where the
Not at the moment, and I also wouldn't add it to the
Note that with the nice new AiiDA registry developed by @AhmedBasem20 you can also see the docstring/inputs/outputs etc for every work chain: Which is of course also information you can obtain from |
Sweet, didn't notice, that's great! I then think I can close this PR (my bad :D). |
@bastonero not at all! I'm going to reopen with the following actionable points: In the section on submitting the work chain:
|
Hi everyone,
I just had a quick look at the tutorials - they are great!
Nevertheless, I find it a bit confusing for first users to get started with the
get_builder_from_protocols
, as:I guess this type of tutorial would be more appropriate for:
How to get your life easier
.One of the questions I get more often are:
So I think it would be better to show in this tutorial how to tackle these questions first, otherwise people get immediately stuck for other workflows, for which btw there is still very little documentation.
Hope this will help to make the docs better for new users (:
Cheers!
The text was updated successfully, but these errors were encountered: