From cc0e26a91a84b015b03aa7656ccd0528d7465697 Mon Sep 17 00:00:00 2001 From: wakonig_k Date: Thu, 31 Oct 2024 15:58:25 +0100 Subject: [PATCH] fix(device base): added missing property to BECDeviceBase --- ophyd_devices/utils/bec_device_base.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ophyd_devices/utils/bec_device_base.py b/ophyd_devices/utils/bec_device_base.py index e9d3eda..4728b9e 100644 --- a/ophyd_devices/utils/bec_device_base.py +++ b/ophyd_devices/utils/bec_device_base.py @@ -125,6 +125,16 @@ class BECDeviceBase: return root root = root.parent + @property + def dotted_name(self): + """Return the dotted name""" + names = [] + obj = self + while obj.parent is not None: + names.append(obj.name) + obj = obj.parent + return ".".join(names[::-1]) + @property def hints(self) -> dict: """hints property"""