fall back to Id if name is not given also for smaracts

This commit is contained in:
2020-11-12 17:02:51 +01:00
parent 27ae6ae03c
commit 781369b892
+1
View File
@@ -36,6 +36,7 @@ class SmarActStage(BaseDevice):
class SmarActAxis(Adjustable):
def __init__(self, Id, name=None):
name = name or Id
units = PV(Id + ":DRIVE.EGU").get() #TODO
super().__init__(name=name, units=units)
self.Id = Id