From 9d9a5fe305981f845c87e3417dd1072d2b8692b0 Mon Sep 17 00:00:00 2001 From: wakonig_k Date: Thu, 5 Sep 2024 14:33:26 +0200 Subject: [PATCH] refactor: bodge to make simmonitor compatible with tests; to be removed asap --- ophyd_devices/sim/sim_monitor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ophyd_devices/sim/sim_monitor.py b/ophyd_devices/sim/sim_monitor.py index 09c85b4..a4bebac 100644 --- a/ophyd_devices/sim/sim_monitor.py +++ b/ophyd_devices/sim/sim_monitor.py @@ -74,8 +74,8 @@ class SimMonitor(ReadOnlySignal): ) if self.sim_init: self.sim.set_init(self.sim_init) - # TODO remove after refactoring, ensures backward compatibility with old simulation config of BEC core (pseudo signal) - self.readback = ReadOnlySignal(name=self.name, parent=self, value=self.BIT_DEPTH(0)) + # TODO remove after refactoring, this is a temporary bodge to avoid breaking tests + self.readback = self @property def registered_proxies(self) -> None: