From d5770b6899f28037a17dd4b02e269f86680174be Mon Sep 17 00:00:00 2001 From: tlakshmi Date: Sat, 5 Oct 2024 14:50:11 +0200 Subject: [PATCH 1/9] add colors for gui --- pyiron_workflow/nodes/composite.py | 5 +++++ pyiron_workflow/nodes/function.py | 5 +++++ pyiron_workflow/nodes/transform.py | 5 +++++ 3 files changed, 15 insertions(+) diff --git a/pyiron_workflow/nodes/composite.py b/pyiron_workflow/nodes/composite.py index 075681e3..f5d8c9fc 100644 --- a/pyiron_workflow/nodes/composite.py +++ b/pyiron_workflow/nodes/composite.py @@ -423,6 +423,11 @@ def color(self) -> str: """For drawing the graph""" return SeabornColors.brown + @property + def gui_color(self) -> str: + """For nodes in the gui""" + return "#eacf9f" + @property def graph_as_dict(self) -> dict: """ diff --git a/pyiron_workflow/nodes/function.py b/pyiron_workflow/nodes/function.py index a3653147..7d4bba7f 100644 --- a/pyiron_workflow/nodes/function.py +++ b/pyiron_workflow/nodes/function.py @@ -343,6 +343,11 @@ def color(self) -> str: """For drawing the graph""" return SeabornColors.green + @property + def gui_color(self) -> str: + """For nodes in the gui""" + return "#a2ea9f" + @classmethod def _extra_info(cls) -> str: return getsource(cls.node_function) diff --git a/pyiron_workflow/nodes/transform.py b/pyiron_workflow/nodes/transform.py index 7c8701bd..f9cc52d2 100644 --- a/pyiron_workflow/nodes/transform.py +++ b/pyiron_workflow/nodes/transform.py @@ -29,6 +29,11 @@ def color(self) -> str: """For drawing the graph""" return SeabornColors.blue + @property + def gui_color(self) -> str: + """For nodes in the gui""" + return "#cb9fea" + class FromManyInputs(Transformer, ABC): _output_name: ClassVar[str] # Mandatory attribute for non-abstract subclasses From 10d9262f4a229d8a294c72b008e87633d804b800 Mon Sep 17 00:00:00 2001 From: Tarakeshwar Lakshmipathy <87063936+Tara-Lakshmipathy@users.noreply.github.com> Date: Tue, 8 Oct 2024 13:11:34 +0200 Subject: [PATCH 2/9] Update function.py --- pyiron_workflow/nodes/function.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pyiron_workflow/nodes/function.py b/pyiron_workflow/nodes/function.py index 7d4bba7f..8a902da0 100644 --- a/pyiron_workflow/nodes/function.py +++ b/pyiron_workflow/nodes/function.py @@ -346,7 +346,8 @@ def color(self) -> str: @property def gui_color(self) -> str: """For nodes in the gui""" - return "#a2ea9f" + color_light_green = "#a2ea9f" + return color_light_green @classmethod def _extra_info(cls) -> str: From 10ba914360f95a1f63f19680933edd8eef5703d9 Mon Sep 17 00:00:00 2001 From: Tarakeshwar Lakshmipathy <87063936+Tara-Lakshmipathy@users.noreply.github.com> Date: Tue, 8 Oct 2024 13:12:54 +0200 Subject: [PATCH 3/9] Update composite.py --- pyiron_workflow/nodes/composite.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pyiron_workflow/nodes/composite.py b/pyiron_workflow/nodes/composite.py index f5d8c9fc..3bcd3586 100644 --- a/pyiron_workflow/nodes/composite.py +++ b/pyiron_workflow/nodes/composite.py @@ -426,7 +426,8 @@ def color(self) -> str: @property def gui_color(self) -> str: """For nodes in the gui""" - return "#eacf9f" + color_light_orange = "#eacf9f" + return color_light_orange @property def graph_as_dict(self) -> dict: From 5b01ff48e0426511295bb8239548b3be87db956a Mon Sep 17 00:00:00 2001 From: Tarakeshwar Lakshmipathy <87063936+Tara-Lakshmipathy@users.noreply.github.com> Date: Tue, 8 Oct 2024 13:13:36 +0200 Subject: [PATCH 4/9] Update transform.py --- pyiron_workflow/nodes/transform.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pyiron_workflow/nodes/transform.py b/pyiron_workflow/nodes/transform.py index f9cc52d2..afb476d2 100644 --- a/pyiron_workflow/nodes/transform.py +++ b/pyiron_workflow/nodes/transform.py @@ -32,7 +32,8 @@ def color(self) -> str: @property def gui_color(self) -> str: """For nodes in the gui""" - return "#cb9fea" + color_light_purple = "#cb9fea" + return color_light_purple class FromManyInputs(Transformer, ABC): From 9136a7ba3bdf004513fe41c1dfd28bb42efcbacd Mon Sep 17 00:00:00 2001 From: Tarakeshwar Lakshmipathy <87063936+Tara-Lakshmipathy@users.noreply.github.com> Date: Tue, 8 Oct 2024 13:22:47 +0200 Subject: [PATCH 5/9] Update function.py --- pyiron_workflow/nodes/function.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyiron_workflow/nodes/function.py b/pyiron_workflow/nodes/function.py index 8a902da0..a58c3d0e 100644 --- a/pyiron_workflow/nodes/function.py +++ b/pyiron_workflow/nodes/function.py @@ -345,7 +345,7 @@ def color(self) -> str: @property def gui_color(self) -> str: - """For nodes in the gui""" + """For nodes in the gui, pyiron-xyflow in reactflow.py""" color_light_green = "#a2ea9f" return color_light_green From c9c3269122cbb315be7a2c7b474787bd1b158835 Mon Sep 17 00:00:00 2001 From: Tarakeshwar Lakshmipathy <87063936+Tara-Lakshmipathy@users.noreply.github.com> Date: Tue, 8 Oct 2024 13:23:25 +0200 Subject: [PATCH 6/9] Update composite.py --- pyiron_workflow/nodes/composite.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyiron_workflow/nodes/composite.py b/pyiron_workflow/nodes/composite.py index 3bcd3586..4ae87cb6 100644 --- a/pyiron_workflow/nodes/composite.py +++ b/pyiron_workflow/nodes/composite.py @@ -425,7 +425,7 @@ def color(self) -> str: @property def gui_color(self) -> str: - """For nodes in the gui""" + """"""For nodes in the gui, pyiron-xyflow in reactflow.py"""""" color_light_orange = "#eacf9f" return color_light_orange From 9dca8d8088aa8a6527fd9073724660497bffaa00 Mon Sep 17 00:00:00 2001 From: Tarakeshwar Lakshmipathy <87063936+Tara-Lakshmipathy@users.noreply.github.com> Date: Tue, 8 Oct 2024 13:23:47 +0200 Subject: [PATCH 7/9] Update transform.py --- pyiron_workflow/nodes/transform.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyiron_workflow/nodes/transform.py b/pyiron_workflow/nodes/transform.py index afb476d2..f1cc793d 100644 --- a/pyiron_workflow/nodes/transform.py +++ b/pyiron_workflow/nodes/transform.py @@ -31,7 +31,7 @@ def color(self) -> str: @property def gui_color(self) -> str: - """For nodes in the gui""" + """"""For nodes in the gui, pyiron-xyflow in reactflow.py"""""" color_light_purple = "#cb9fea" return color_light_purple From fe814f96383ec401aac0034d7c2e0a7f52cff4d2 Mon Sep 17 00:00:00 2001 From: Sam Dareska <37879103+samwaseda@users.noreply.github.com> Date: Tue, 8 Oct 2024 13:24:52 +0200 Subject: [PATCH 8/9] Update pyiron_workflow/nodes/composite.py --- pyiron_workflow/nodes/composite.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyiron_workflow/nodes/composite.py b/pyiron_workflow/nodes/composite.py index 4ae87cb6..b513e20a 100644 --- a/pyiron_workflow/nodes/composite.py +++ b/pyiron_workflow/nodes/composite.py @@ -425,7 +425,7 @@ def color(self) -> str: @property def gui_color(self) -> str: - """"""For nodes in the gui, pyiron-xyflow in reactflow.py"""""" + """For nodes in the gui, pyiron-xyflow in reactflow.py""" color_light_orange = "#eacf9f" return color_light_orange From 00874389762db907933f7ded70e61a837f61a2fa Mon Sep 17 00:00:00 2001 From: Sam Dareska <37879103+samwaseda@users.noreply.github.com> Date: Tue, 8 Oct 2024 13:24:58 +0200 Subject: [PATCH 9/9] Update pyiron_workflow/nodes/transform.py --- pyiron_workflow/nodes/transform.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyiron_workflow/nodes/transform.py b/pyiron_workflow/nodes/transform.py index f1cc793d..179cade9 100644 --- a/pyiron_workflow/nodes/transform.py +++ b/pyiron_workflow/nodes/transform.py @@ -31,7 +31,7 @@ def color(self) -> str: @property def gui_color(self) -> str: - """"""For nodes in the gui, pyiron-xyflow in reactflow.py"""""" + """For nodes in the gui, pyiron-xyflow in reactflow.py""" color_light_purple = "#cb9fea" return color_light_purple