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"""