FilteredFieldWrapper

class lsst.ts.watcher.FilteredFieldWrapper(model, topic, filter_field, filter_value, field_name)

Bases: lsst.ts.watcher.filtered_field_wrapper.BaseFilteredFieldWrapper

Track a specified field.

Parameters
modelModel

Watcher model.

topiclsst.ts.salobj.ReadTopic

Topic to read.

filter_fieldstr

Name of filter field.

filter_valuestr

Required value of the filter field.

field_namestr

Name of field to read. The field must be a scalar.

Methods Summary

update_value(data)

Set value from non-None data.

validate(data)

Check the configuration given default topic data.

Methods Documentation

update_value(data)

Set value from non-None data.

validate(data)

Check the configuration given default topic data.

Raises
ValueError

If validation fails.

Note: the contained topic wrapper checks for the existence of
the filter field, so this method does not have to bother.