Skip to content

Commit

Permalink
Format black
Browse files Browse the repository at this point in the history
  • Loading branch information
pyiron-runner committed Jun 22, 2023
1 parent cbc8fbc commit 45048d4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pyiron_contrib/workflow/channels.py
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,7 @@ class OutputData(DataChannel):
On `update`, Output channels propagate their value to all the input channels to
which they are connected by invoking their `update` method.
"""

def _after_update(self) -> None:
for inp in self.connections:
inp.update(self.value)
Expand Down Expand Up @@ -446,6 +447,7 @@ class InputSignal(SignalChannel):
"""
Invokes a callback when called.
"""

def __init__(
self,
label: str,
Expand Down Expand Up @@ -481,6 +483,7 @@ class OutputSignal(SignalChannel):
"""
Calls all the input signal objects in its connections list when called.
"""

def __call__(self) -> None:
for c in self.connections:
c()
Expand Down
1 change: 1 addition & 0 deletions pyiron_contrib/workflow/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ class Signals:
input (InputSignals): An empty input signals IO container.
output (OutputSignals): An empty input signals IO container.
"""

def __init__(self):
self.input = InputSignals()
self.output = OutputSignals()
Expand Down

0 comments on commit 45048d4

Please sign in to comment.