'HwDetInfoCtrlObj' object has no attribute 'setUserInstrumentName'
When setting the instrument name property, the DS won't start with:
File "C:\Mambaforge\envs\pco\lib\site-packages\Lima\Server\LimaCCDs.py", line 398, in __init__
self.init_device()
File "C:\Mambaforge\envs\pco\lib\site-packages\Lima\Core\Debug.py", line 64, in real_fn
return new_fn(*arg, **kw)
File "C:\Mambaforge\envs\pco\lib\site-packages\Lima\Server\LimaCCDs.py", line 666, in init_device
self.__detinfo.setUserInstrumentName(self.UserInstrumentName)
AttributeError: 'HwDetInfoCtrlObj' object has no attribute 'setUserInstrumentName'
Obvious mistake in
# Setup a user-defined detector name if it exists
if self.UserInstrumentName:
if SystemHasFeature("Core.HwDetInfoCtrlObj.setInstrumentName"):
self.__detinfo.setUserInstrumentName(self.UserInstrumentName)
else:
deb.Warning("UserInstrumentName not supported in this version")
__detinfo.setUserInstrumentName
should be __detinfo.setInstrumentName
.
Edited by Samuel Debionne