FilteredEssFieldWrapper#
- class lsst.ts.watcher.FilteredEssFieldWrapper(model, topic, sensor_name, field_name)#
Bases:
BaseFilteredFieldWrapperTrack a field of an ESS telemetry topic, with a particular sensor name.
- Parameters:
model (
Model) – Watcher model.topic (
lsst.ts.salobj.ReadTopic) – Topic to read.sensor_name (
str) – Sensor name to filter on. This becomes filter_value in the base class, and filter_field is hard-coded to be “sensorName”.field_name (
str) – 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
valuefrom DDS data.Methods Documentation
- get_value_descr(index)#
Get a description for a value.
- Parameters:
index (
intorNone) – The index of the value; must beNonefor 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
valuefrom DDS data.Do not set the
timestampfield, and do not check thatgetattr(data, filter_field) == self.filter_value; both of these are done by the caller:FilteredTopicWrapper.__call__.