FilteredEssFieldWrapper

class lsst.ts.watcher.FilteredEssFieldWrapper(model, topic, sensor_name, field_name)

Bases: BaseFilteredFieldWrapper

Track a field of an ESS telemetry topic, with a particular sensor name.

Parameters:
modelModel

Watcher model.

topiclsst.ts.salobj.ReadTopic

Topic to read.

sensor_namestr

Sensor name to filter on. This becomes filter_value in the base class, and filter_field is hard-coded to be “sensorName”.

field_namestr

Name of field to read. The field may be a scalar or an array.

Methods Summary

get_value_descr(index)

Get a description for a value.

update_value(data)

Set value from DDS data.

Methods Documentation

get_value_descr(index)

Get a description for a value.

Parameters:
indexint or None

The index of the value; must be None for a scalar, and an int for an array.

Raises:
ValueError

If the field is indexed and the index is None or out of range. If the field is not indexed and the index is not None.

update_value(data)

Set value from DDS data.

Do not set the timestamp field, and do not check that getattr(data, filter_field) == self.filter_value; both of these are done by the caller: FilteredTopicWrapper.__call__.