Obs Device

SKAObsDevice.

A generic base device for Observations for SKA. It inherits SKABaseDevice class. Any device implementing an obsMode will inherit from SKAObsDevice instead of just SKABaseDevice.

class ska_tango_base.obs.obs_device.ObsDeviceComponentManager[source]

A stub for an observing device component manager.

class ska_tango_base.obs.obs_device.SKAObsDevice[source]

A generic base device for Observations for SKA.

SKAObsDevice inherits from the SKABaseDevice and ObsInterface, and expects a component manager to be provided by implementing the create_component_manager() method.

class InitCommand[source]

A class for the SKAObsDevice’s init_device() “command”.

do(*args: Any, **kwargs: Any) tuple[ResultCode, str][source]

Stateless hook for device initialisation.

Parameters:
  • args – positional arguments to the command. This command does not take any, so this should be empty.

  • kwargs – keyword arguments to the command. This command does not take any, so this should be empty.

Returns:

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

create_component_manager() ComponentManagerT[source]

Create and return a component manager for this device.

Raises:

NotImplementedError – because it is not implemented.

ska_tango_base.obs.obs_device.main(*args: str, **kwargs: str) int[source]

Entry point for module.

Parameters:
  • args – positional arguments

  • kwargs – named arguments

Returns:

exit code