Helper_CSP_Subarray_Device

This module implements the Helper devices for CSP subarray nodes for testing an integrated TMC

class ska_tmc_simulators.helper_csp_subarray_device.HelperCSPSubarrayDevice(*args: Any, **kwargs: Any)

Bases: HelperSubArrayDevice

A device exposing commands and attributes of the CSP Subarray Device.

InitCommand = None
init_device()
lrcProtocolVersions() tuple[int, int]

Return supported protocol versions.

Returns:

A tuple containing the lower and upper bounds of supported long running command protocol versions.

read_qualityAssuranceMetrics() str

This method is used to read qualityAssuranceMetrics attribute

Returns:

attribute qualityAssuranceMetrics

Return type:

str

Configure(argin: str) Tuple[List[ska_tango_base.commands.ResultCode], List[str]]

This method invokes Configure command on subarray devices

Parameters:

argin (str) – Input JSON configuration

Returns:

ResultCode, message

Return type:

Tuple

update_processors_ready_percent()

This method increments processors_ready_percent attribute by 10 till it reaches 100 to simulate the processor being configured.

is_GoToIdle_allowed() bool

Check if command GoToIdle is allowed in the current device state.

Returns:

True if the command is allowed

Return type:

bool

Raises:

CommandNotAllowed – command is not allowed

GoToIdle() Tuple[List[ska_tango_base.commands.ResultCode], List[str]]

This method invokes GoToIdle command on subarray devices.

Returns:

ResultCode, message

Return type:

Tuple

Abort() Tuple[List[ska_tango_base.commands.ResultCode], List[str]]

This method invokes Abort command on subarray devices.

Returns:

ResultCode, message

Return type:

Tuple

Restart() Tuple[List[ska_tango_base.commands.ResultCode], List[str]]

This method invokes Restart command on subarray devices

Returns:

ResultCode, message

Return type:

tuple