Skip to content

Adding a field for catalog name for the control system and a catalog registration method #29

Description

@gupichon

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions