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

[minor] Make Function IO info available at the class level #266

Merged
merged 12 commits into from
Apr 11, 2024
Prev Previous commit
Next Next commit
Format black
pyiron-runner committed Mar 27, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit fe829362ae94ab3720d14e69e9860b90881d1a52
1 change: 1 addition & 0 deletions pyiron_workflow/function.py
Original file line number Diff line number Diff line change
@@ -307,6 +307,7 @@ class AbstractFunction(Node, ABC):
raise an error when combined with an executor, and otherwise behaviour is not
guaranteed.
"""

_provided_output_labels: tuple[str] | None = None

def __init__(
6 changes: 3 additions & 3 deletions pyiron_workflow/meta.py
Original file line number Diff line number Diff line change
@@ -137,9 +137,9 @@ def make_loop(macro):
# output
for body_node, out in zip(body_nodes, interface.outputs):
body_node.inputs[label] = out
macro.inputs_map[
interface.inputs.input_list.scoped_label
] = interface.label
macro.inputs_map[interface.inputs.input_list.scoped_label] = (
interface.label
)
# Or broadcast the same input to each node equally
else:
interface = macro.create.standard.UserInput(