Calibration Solver Component Manager

This module provides a component manager for a station calibration solver.

class StationCalibrationSolverComponentManager(*args: Any, **kwargs: Any)[source]

A component manager for a station calibration solver.

__init__(root_path: str, eep_root_path: str, logger: Logger, communication_state_callback: Callable[[ska_control_model.CommunicationStatus], None], component_state_callback: Callable[[...], None])[source]

Initialise a new instance.

Parameters:
  • root_path – the root path for loading data from

  • eep_root_path – the root path for the embedded element pattern files.

  • logger – the logger to be used by this object.

  • communication_state_callback – callback to be called when the status of the communications channel between the component manager and its component changes

  • component_state_callback – callback to be called when the component state changes.

off(task_callback: Callable | None = None) tuple[ska_control_model.TaskStatus, str][source]

Turn the component off.

Parameters:

task_callback – callback to be called when the status of the command changes

Raises:

NotImplementedError – Not implemented it’s an abstract class

on(task_callback: Callable | None = None) tuple[ska_control_model.TaskStatus, str][source]

Turn the component on.

Parameters:

task_callback – callback to be called when the status of the command changes

Raises:

NotImplementedError – Not implemented it’s an abstract class

reset(task_callback: Callable | None = None) tuple[ska_control_model.TaskStatus, str][source]

Reset the component (from fault state).

Parameters:

task_callback – callback to be called when the status of the command changes

Raises:

NotImplementedError – Not implemented it’s an abstract class

solve(data_path: str, solution_path: str, station_config_path: tuple[str, str], task_callback: Callable | None = None, task_abort_event: Event | None = None, **kwargs: Any) None[source]

Solve for a calibration solution.

Parameters:
  • data_path – path to the stored data to use for solving for calibration.

  • solution_path – the path of the solution to be written.

  • station_config_path – a list used to locate configuration from TelModel.

  • kwargs – any kwargs

  • task_callback – Update task state, defaults to None

  • task_abort_event – Check for abort, defaults to None

standby(task_callback: Callable | None = None) tuple[ska_control_model.TaskStatus, str][source]

Put the component into low-power standby mode.

Parameters:

task_callback – callback to be called when the status of the command changes

Raises:

NotImplementedError – Not implemented it’s an abstract class

start_communicating() None[source]

Establish communication with the station components.

stop_communicating() None[source]

Break off communication with the station components.