From 84f68191f7db6855ecbfff9a2f7e07fbefd8147c Mon Sep 17 00:00:00 2001 From: Andrea Parenti <andrea.parenti@xfel.eu> Date: Tue, 21 Jan 2025 14:19:50 +0100 Subject: [PATCH] Refactor / 8 --- src/tempus/Tempus.py | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/tempus/Tempus.py b/src/tempus/Tempus.py index dd0842e..4030cea 100644 --- a/src/tempus/Tempus.py +++ b/src/tempus/Tempus.py @@ -72,7 +72,6 @@ class Tempus(Device): super().__init__(configuration) self.background_task = None self.monitor_task = background(self._monitor()) - self.ARGS = [f"root@{self.controllerIp}", "python3"] self.client = None self.channel = None self.do_acquire = False @@ -167,7 +166,7 @@ class Tempus(Device): @Slot( displayedName="Initialize", description="Run the initialization sequence. This will take about " - "45 s", + "45 s.", allowedStates={State.INIT, State.ON}) async def initialize(self): self.state = State.CHANGING @@ -207,12 +206,12 @@ class Tempus(Device): @Slot( displayedName="Reset Fast-Links", - description="Reset fast-links. This will take about 30 s", + description="Reset fast-links. This will take about 30 s.", allowedStates={State.ON, State.ACTIVE}) async def resetFastLinks(self): self.state = State.CHANGING self.commandLog = ( - "Resetting fast-links:\nThis will take about 30 s") + "Resetting fast-links:\nThis will take about 30 s.") self.background_task = background(self._reset_fast_links()) async def _reset_fast_links(self): # XXX test @@ -235,8 +234,8 @@ class Tempus(Device): @Slot( displayedName="Configure", - description="Run the configuration sequence. This can take about " - "45 s", + description="Run the configuration sequence. This will take about " + "45 s.", allowedStates={State.ON}) async def configure(self): self.state = State.CHANGING @@ -245,7 +244,7 @@ class Tempus(Device): "Configuring TEMPUS:\nThis will take about 45 s.\n\n") self.background_task = background(self._configure()) - async def _configure(self): + async def _configure(self): # XXX test try: await self.send_command( f"exec(open('{self.CFG_DIR}/B3_timing_dacs.py').read())") -- GitLab