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:
  • name (str) – Name of SAL component.

  • index (int) – SAL component index; use 0 if the component is not indexed.

  • callback_names (list [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_names (list [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_required (bool, 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.

name#

Name of SAL component.

Type:

str

index#

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

Type:

int

callback_names#

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

Type:

tuple [str]

poll_names#

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

Type:

tuple [str]

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 Summary

key

topic_names

callback_names + poll_names.

Attributes Documentation

key#
topic_names#

callback_names + poll_names.

Type:

Get all topic names