Skip to content
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

Add a doc example for workflow inputs and outputs #675

Merged
merged 9 commits into from
Jun 5, 2023
8 changes: 8 additions & 0 deletions pyiron_contrib/workflow/workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,14 @@ class Workflow(HasToDict):
... y=wf.calc.outputs.temperature
... )

The unconnected inputs and outputs of nodes belonging to a workflow can be
accessed directly via the node, or right from the workflow by combining the
node and channel labels thanks to a convenience-wrapper. Continuing the above
example, we could write...
>>> wf.structure.inputs.element = "Ni"
>>> print(type(wf.outputs.plot_fig.value))
<class 'matplotlib.collections.PathCollection'>


TODO: Workflows can be serialized.

Expand Down