From eb739b66353d34122f707e204fb6304a24510d41 Mon Sep 17 00:00:00 2001 From: Marcell Nagy Date: Mon, 27 Jan 2025 09:41:40 +0000 Subject: [PATCH 1/2] Fix gui not being generated --- src/fastcs/launch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fastcs/launch.py b/src/fastcs/launch.py index 653543764..7ffe06fc0 100644 --- a/src/fastcs/launch.py +++ b/src/fastcs/launch.py @@ -77,7 +77,7 @@ def create_docs(self) -> None: def create_gui(self) -> None: for transport in self._transports: if hasattr(transport.options, "gui"): - transport.create_docs() + transport.create_gui() def run(self): self._loop.run_until_complete( From d051427c2d615cdcae711be650fd19821564c32b Mon Sep 17 00:00:00 2001 From: Marcell Nagy Date: Mon, 27 Jan 2025 09:41:58 +0000 Subject: [PATCH 2/2] Create epics gui path if not exist --- src/fastcs/transport/epics/gui.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/fastcs/transport/epics/gui.py b/src/fastcs/transport/epics/gui.py index f07a63572..6412aa20d 100644 --- a/src/fastcs/transport/epics/gui.py +++ b/src/fastcs/transport/epics/gui.py @@ -116,6 +116,7 @@ def create_gui(self, options: EpicsGUIOptions | None = None) -> None: raise FastCSException("FastCS does not support .edl screens.") assert options.output_path.suffix == options.file_format.value + options.output_path.parent.mkdir(parents=True, exist_ok=True) controller_mapping = self._controller.get_controller_mappings()[0] components = self.extract_mapping_components(controller_mapping)