TemperatureSensor#
- class lsst.ts.ess.common.sensor.TemperatureSensor(log, num_channels=0)#
Bases:
BaseSensorSEL multi-channel temperature reader.
Perform protocol conversion for a SEL multi-channel temperature reader.
- Parameters:
log (
logger) – The logger for which to create a child logger.num_channels (
int) – The number of temperature channels.
Methods Summary
extract_telemetry(line)Extract the temperature telemetry from a line of Sensor data.
Methods Documentation
- async extract_telemetry(line)#
Extract the temperature telemetry from a line of Sensor data.
- Parameters:
line (
str) – A line of comma separated telemetry, each of the format CXX=XXXX.XXX- Returns:
output – A list of floats containing the temperature telemetry as measured by the sensor. The length of the output list is the same as the number of channels. If a channel is disconnected (its value will be DISCONNECTED_VALUE) or if a channel is missing because the connection to the sensor is established mid output, then the value gets replaced by np.nan.
- Return type: