mirror of
https://github.com/bec-project/ophyd_devices.git
synced 2025-06-24 03:38:00 +02:00
fix(device base): added missing property to BECDeviceBase
This commit is contained in:
@ -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"""
|
||||
|
Reference in New Issue
Block a user