FieldWrapper#
- class lsst.ts.watcher.FieldWrapper(model, topic, field_name)#
Bases:
BaseFilteredFieldWrapperTrack a field of a telemetry topic.
- Parameters:
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__.