RemoteInfo

class lsst.ts.watcher.RemoteInfo(name, index, callback_names=None, poll_names=None, index_required=True)

Bases: object

Information about a remote SAL component.

Parameters:
namestr

Name of SAL component.

indexint

SAL component index; use 0 if the component is not indexed.

callback_nameslist [str], optional

Names of telemetry or event topics for which the rule is called when a sample is read. If None then no such topics. Each name must include prefix evt_ or tel_ for event or telemetry. For example [“evt_FilterChangeInPosition”, “evt_TrackingTarget”]

poll_nameslist [str], optional

Names of telemetry or event topics which are available to the rule, but do not trigger a rule callback. If None then no such topics. Each name must include prefix evt_ or tel_ for event or telemetry.

index_requiredbool, optional

If the component is indexed, is a non-zero index required? Defaults to True, since it is rare for a rule to be able to handle more than one instance of a CSC.

Raises:
ValueError

If any name in callback_names or poll_names does not begin with evt_ or tel_.

ValueError

If the same name appears more than once in callback_names + poll_names, in other words, more than once in either list or in both lists taken together.

ValueError

If no callback_names nor poll_names are specified.

ValueError

If index cannot be cast to an int.

Attributes:
namestr

Name of SAL component.

indexint

SAL component index; use 0 if the component is not indexed.

callback_namestuple [str]

The callback_names argument converted to a tuple; an empty tuple if the argument is None.

poll_namestuple [str]

The poll_names argument converted to a tuple; an empty tuple if the argument is None.

Attributes Summary

key

topic_names

Get all topic names: callback_names + poll_names.

Attributes Documentation

key
topic_names

Get all topic names: callback_names + poll_names.