From ce94a6a88df6f90409c4fb4c29260ad77048f27d Mon Sep 17 00:00:00 2001 From: wakonig_k Date: Tue, 7 Nov 2023 16:28:45 +0100 Subject: [PATCH] fix: fixed fupr axis_is_referenced --- ophyd_devices/galil/fupr_ophyd.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/ophyd_devices/galil/fupr_ophyd.py b/ophyd_devices/galil/fupr_ophyd.py index f44bfe3..0db5b5d 100644 --- a/ophyd_devices/galil/fupr_ophyd.py +++ b/ophyd_devices/galil/fupr_ophyd.py @@ -36,14 +36,10 @@ class FuprGalilController(GalilController): is_moving = bool(float(self.socket_put_and_receive(f"MG_BG{axis_Id}")) != 0) return is_moving - def all_axes_referenced(self) -> bool: - # TODO: check if all axes are referenced in all controllers - return super().all_axes_referenced() - def axis_is_referenced(self, axis_Id) -> bool: return self.all_axes_referenced() - def all_axis_referenced(self) -> bool: + def all_axes_referenced(self) -> bool: return bool(float(self.socket_put_and_receive("MG axisref").strip())) def drive_axis_to_limit(self, axis_Id_numeric, direction: str) -> None: