add_missing_telemetry#

lsst.ts.ess.common.sensor.add_missing_telemetry(telemetry, expected_length)#

Prepend a telemetry list with NaN values to make sure that it has the expected length.

Parameters:
  • telemetry (list) – The list of telemetry values to prepend to.

  • expected_length (int) – The expected length of the telemetry list.

Returns:

The telemetry list or, if the length of the telemetry list is shorter then the expected length, the telemetry list with NaN values prepended such that the length matches the expected length.

Return type:

list