Calibration Solver Device

This module provides a Tango device for a station calibration solver.

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

A Tango device for a station calibration solver.

Solve(data_path: str, solution_path: str, station_config_path: tuple[str, str], **kwargs: Any) ska_tango_base.type_hints.TaskFunctionType[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 – optional keys eep_filebase, back_rotation, nside, niter, skymodel

Example:

>>> dp = tango.DeviceProxy("low-mccs/solver/solver")
>>> config = json.dumps({
    "data_path": ( # relative to RootPath property
        "eb-t0001-20240422-00008/correlation_burst_205_20240422_27281_0.hdf5"),
    "solution_path": ( # relative to RootPath property
        "eb-t0001-20240422-00008/correlation_burst_205_20240422_27281_0.npy"),
    "eep_filebase": "FEKO_AAVS3_vogel_256_elem_50ohm_",
    "station_config_path": [
        "car:ska-low-aavs3?main",
        "instrument/mccs-configuration/aavs3.yaml",
    ],
    "structure_version",
    "back_rotation": True,
    "nside": 32,
    "niter": 200,
    "skymodel": "gsm"
    }
})
>>> dp.command_inout("Solve", config)
Returns:

A tuple containing a return code and a string message indicating status. The message is for information purpose only.

create_component_manager() StationCalibrationSolverComponentManager[source]

Create and return a component manager for this device.

Returns:

a component manager for this device.

init_device() None[source]

Initialise the device.

main(*args: str, **kwargs: str) int[source]

Entry point for module.

Parameters:
  • args – positional arguments

  • kwargs – named arguments

Returns:

exit code