Controller Cli
The command line interface for the MCCS Controller device server.
- class CliMeta(name: str, bases: tuple[type], attrs: dict)
Metaclass to catch exceptions.
Dissect
tango.DevFailed
and other exceptions for all class methods. They get turned intofire.core.FireError
exceptions.- classmethod fire_except(method)
Wrap a Tango exception and raise a FireError.
Wraps the method so that any
tango.DevFailed
exception raised by a method is converted to afire.core.FireError
, so that the CLI framework handles it nicely.
- class MccsControllerCli(trl='low-mccs/control/control')
Command-line interface to the MccsController tango device.
- __init__(trl='low-mccs/control/control')
Initialise a new CLI instance.
- Parameters:
trl (
str
) – the TRL of the controller device. Optional: defaults to “low-mccs/control/control”
- allocate(subarray_id=0, station_ids=None, subarray_beam_ids=None, channel_blocks=None)
Allocate stations to a subarray.
- Parameters:
- Return type:
- Returns:
a result message
- logginglevel(level=None)
Get and/or set the logging level of the device.
- off()
Turn the controller (and hence all of MCCS) off.
- Return type:
- Returns:
A return code and a string message indicating status converted into a two line string
- on()
Turn the controller (and hence all of MCCS) on.
- Return type:
- Returns:
A return code and a string message indicating status converted into a two line string
- release(subarray_id=0)
Release resources from a subarray.
- reset()
Reset the controller following a fatal error.
- Return type:
- Returns:
A return code and a string message indicating status converted into a two line string
- simulationmode()
Show the control mode.
- Todo:
make writable
- Return type:
- Returns:
simulation mode
- format_wrapper(method)
Wrap the return message as a two line string.
Wraps a method with a wrapper that ensures that the method returns results formatted as a two-line string.