MockFormatter

class lsst.ts.ess.common.device.MockFormatter

Bases: ABC

Methods Summary

format_output([num_channels, ...])

Create a formatted output of a sensor.

Methods Documentation

abstract format_output(num_channels: int = 0, disconnected_channel: int = 0, missed_channels: int = 0) list[str]

Create a formatted output of a sensor.

Parameters:
num_channelsint

The number of channels of the sensor, or 0 if this doesn’t apply to the specific sensor type.

disconnected_channelint

The disconnected channel, or -1 if the test case doesn’t involve a disconnected channel.

missed_channelsint

The missed channels, or 0 if the test case doesn’t involve missed channels.

Returns:
list

The list of strings representing the formatted output of a sensor.