Problem with ALIASES
In the setup, the usage of ALIASES (e.g. the line line ALIASES.add("wbd", wcid232a.wbd)) gives the following error, if executed before the macro, using an actuator (although a different one, on a different wago)
File "sessions/mxcubebliss_setup.py", line 51, in <module>
File "/home/blissadm/local/mxbliss.git/mxbliss/anneal_procedure.py", line 28, in __init__
self.actuator = cfg.get("actuator")
File "/home/blissadm/local/bliss.git/bliss/config/static.py", line 293, in get
return self[key]
File "/home/blissadm/local/bliss.git/bliss/config/static.py", line 369, in __getitem__
return value.dereference()
File "/home/blissadm/local/bliss.git/bliss/config/static.py", line 146, in dereference
alias = global_map.aliases.get_alias(obj)
File "/home/blissadm/local/bliss.git/bliss/common/alias.py", line 283, in get_alias
if alias.original_name == obj.name:
AttributeError: 'Actuator' object has no attribute 'name'
All is OK if the ALIASES are defined after the initialisation of the actuator in the macro
Edited by Antonia Beteva