You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One of the simplest way to explain the purpose of workflows in AiiDA is that they group sets of calculations.
A very straightforward way of visualizing this is to take the data trail of a workflow and make two graphs
One graph showing the complete data provenance (no workflow nodes)
One graph showing the workflow node(s) folded in
I.e. I am looking for
a switch to hide workflow nodes (and their links)
a switch for folding in workflow nodes, i.e. replacing anything that happens inside a workflow by the workflow node with its inputs and outputs
a way to control the level of folding in nested workflows
This feature requires some thought, but I believe it is absolutely crucial when explaining AiiDA to new users, and it will become more and more important as we will increasingly start seeing workflows discussed in presentations.
The text was updated successfully, but these errors were encountered:
As a first step, I propose to add a command line option --collapse to verdi node graph generate where one can pass IDs of workflow nodes to be collapsed.
The logic for collapsing a given workflow node is as follows:
start traversing the descendants of the Workflow Node until you hit a node that is directly returned by the workflow
all nodes visited this way, except for the final returned nodes are marked to be hidden and will not appear in the final graph
One way to implement this would be to do a database query (or a set of queries) to get the UUIDs of the nodes that are to be hidden, and then feed a list of these uuids to the graph creation so that these nodes are not actually added to the graphviz graph.
Note: It is still important to traverse these nodes when creating the graphviz representation - e.g. consider the case where the graph is created "upwards" (starting from descendants of the workflow to be hidden).
One of the simplest way to explain the purpose of workflows in AiiDA is that they group sets of calculations.
A very straightforward way of visualizing this is to take the data trail of a workflow and make two graphs
I.e. I am looking for
This feature requires some thought, but I believe it is absolutely crucial when explaining AiiDA to new users, and it will become more and more important as we will increasingly start seeing workflows discussed in presentations.
The text was updated successfully, but these errors were encountered: