make_filtered_topic_wrapper

lsst.ts.watcher.make_filtered_topic_wrapper(model, topic, filter_field)

Make a TopicWrapper, or return an existing one, if found.

Call this instead of constructing TopicWrapper directly.

Parameters
modelModel

Watcher model. Used to add a TopicCallback to the topic, if one does not already exist.

topiclsst.ts.salobj.ReadTopic

Topic to read.

filter_fieldstr

Field to filter on. The field must be a scalar. It should also have a smallish number of expected values, in order to avoid caching too much data.