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.
- get_fitted_gains(task_callback: Callable | None = None, **kwargs: Any) tuple[ska_control_model.TaskStatus, str][source]
Submit the get_fitted_gains slow command.
This method returns immediately after it is submitted for execution.
- Parameters:
task_callback – Update task state, defaults to None
kwargs –
keyword arguments to the command. Required keys are:
channels,
phases,
- Returns:
a result code and response message.
- 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(task_callback: Callable | None = None, **kwargs: Any) tuple[ska_control_model.TaskStatus, str][source]
Submit the solve slow command.
This method returns immediately after it is submitted for execution.
- Parameters:
task_callback – Update task state, defaults to None
kwargs –
keyword arguments to the command. Required keys are:
data_path,
solution_path,
eep_filebase,
station_config_path
Optional keys are:
back_rotation
nside
niter
- Returns:
a result code and response message.
- 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