From 45048d49c6afb96788d99c2ee8b10b5a3cf751d3 Mon Sep 17 00:00:00 2001 From: pyiron-runner Date: Thu, 22 Jun 2023 20:56:42 +0000 Subject: [PATCH] Format black --- pyiron_contrib/workflow/channels.py | 3 +++ pyiron_contrib/workflow/io.py | 1 + 2 files changed, 4 insertions(+) diff --git a/pyiron_contrib/workflow/channels.py b/pyiron_contrib/workflow/channels.py index 64d760567..8bf6be53b 100644 --- a/pyiron_contrib/workflow/channels.py +++ b/pyiron_contrib/workflow/channels.py @@ -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) @@ -446,6 +447,7 @@ class InputSignal(SignalChannel): """ Invokes a callback when called. """ + def __init__( self, label: str, @@ -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() diff --git a/pyiron_contrib/workflow/io.py b/pyiron_contrib/workflow/io.py index 8c6e21e02..c5bc278c0 100644 --- a/pyiron_contrib/workflow/io.py +++ b/pyiron_contrib/workflow/io.py @@ -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()