RemoteWrapper#
- class lsst.ts.watcher.RemoteWrapper(remote, topic_names)#
Bases:
objectSimple access to the current value of a specified set of topics.
The wrapper uses the same attribute names as
lsst.ts.salobj.Remote, but the wrapper’s attributes return the current value of the topic. For exampleremote_wrapper.evt_summaryStatereturnsremote.evt_summaryState.get().- Parameters:
remote (
lsst.ts.salobj.Remote) – Remote to wrap.topic_names (
list[str]) – List of names of topics to wrap, with anevt_ortel_prefix.
- Raises:
ValueError – If a name in
topic_namesis neither the name of an event nor a telemetry topic.
Notes
The intent is to offer each
BaseRulesimple access to the current value of the topics it needs, while hiding access to other topics and to methods of topics thatBaseRuleshould not use, such asnext.Attributes Summary
Get the rule attribute name for this remote wrapper.
Methods Summary
get_topic(name)Return the appropriate
lsst.ts.salobj.ReadTopic.has_topic(name)Return True if this wrapper has the specifies topic.
Attributes Documentation
- attr_name#
Get the rule attribute name for this remote wrapper.
Methods Documentation
- get_topic(name)#
Return the appropriate
lsst.ts.salobj.ReadTopic.