Adding a field for catalog name for the control system and a catalog registration method
controls:
- type: tango.pyaml.controlsystem
tango_host: ebs-simu-3:10000
name: live
catalog: live_catalog
Overriding those methods to return the correct name and manage the catalog object for future uses.
class ControlSystem(ElementHolder, metaclass=ABCMeta):
@abstractmethod
def get_catalog_name(self) -> str | None:
"""Returns the name of the catalog dedicated to this control system"""
return None
def set_catalog(self, catalog: Catalog | None):
self._catalog = catalog