fixed issue with move_to_start

This commit is contained in:
Holler
2025-09-05 11:04:07 +02:00
committed by wakonig_k
parent 81a63d0317
commit 3fac5ff9e3
2 changed files with 6 additions and 4 deletions

View File

@@ -295,9 +295,10 @@ class FlomniFermatScan(SyncFlyScanBase):
logger.debug("reading monitors")
# yield from self.device_rpc("rtx", "controller.kickoff")
def return_to_start(self):
def move_to_start(self):
"""return to the start position"""
# in flomni, we need to move to the start position of the next scan
# in flomni, we need to move to the start position of the next scan, which is the end position of the current scan
# this method is called in finalize and overwrites the default move_to_start()
if isinstance(self.positions, np.ndarray) and len(self.positions[-1]) == 3:
yield from self.stubs.set(device=["rtx", "rty", "rtz"], value=self.positions[-1])
return

View File

@@ -280,9 +280,10 @@ class OMNYFermatScan(SyncFlyScanBase):
logger.debug("reading monitors")
# yield from self.device_rpc("rtx", "controller.kickoff")
def return_to_start(self):
def move_to_start(self):
"""return to the start position"""
# in omny, we need to move to the start position of the next scan
# in omny, we need to move to the start position of the next scan, which is the end position of the current scan
# this method is called in finalize and overwrites the default move_to_start()
if isinstance(self.positions, np.ndarray) and len(self.positions[-1]) == 3:
yield from self.stubs.set(device=["rtx", "rty", "rtz"], value=self.positions[-1])
return