Subarray Beam Component Manager
This module implements component management for subarray beams.
- class SubarrayBeamComponentManager(logger, communication_state_callback, component_state_callback, _station_beams=None)
A component manager for a subarray beam.
- __init__(logger, communication_state_callback, component_state_callback, _station_beams=None)
Initialise a new instance.
- Parameters:
logger (
Logger
) – the logger to be used by this object.communication_state_callback (
Callable
[[CommunicationStatus
],None
]) – callback to be called when the status of the communications channel between the component manager and its component changescomponent_state_callback (
Callable
[...
,None
]) – callback to be called when the component state changes_station_beams (
Optional
[dict
[str
,Any
]]) – a optional injected station beams for testing purposes only. defaults to None
- abort(task_callback=None)
Abort the observation.
- abort_device(task_callback=None)
Abort only this device, for use in RestartSubarray().
- assign_resources(task_callback=None, *, interface=None, subarray_id, subarray_beam_id=0, apertures, first_subarray_channel=0, number_of_channels)
Submit the assign_resources slow task.
This method returns immediately after it is submitted for execution.
- Parameters:
task_callback (
Optional
[Callable
]) – Update task state, defaults to Noneinterface (
Optional
[str
]) – the schema version this is running against.subarray_id (
int
) – ID of the subarray which controls this beamapertures (
Iterable
) – Allocated aperturesfirst_subarray_channel (
Optional
[int
]) – First channel (default 0)number_of_channels (
int
) – Number of allocated channels
- Return type:
- Returns:
A tuple containing a task status and a unique id string to identify the command
- property channels: list[list[int]]
Return the ids of the channels configured for this subarray beam.
- Returns:
the ids of the channels configured for this subarray beam.
- configure(task_callback=None, *, interface=None, subarray_id, subarray_beam_id, update_rate=0.0, logical_bands, apertures, sky_coordinates)
Submit the configure slow task.
This method returns immediately after it is submitted for execution.
- Parameters:
task_callback (
Optional
[Callable
]) – Update task state, defaults to Noneinterface (
Optional
[str
]) – the schema version this is running against.subarray_id (
int
) – ID of the subarray to which thissubarray_beam_id (
int
) – ID of (this) subarray beamupdate_rate (
Optional
[float
]) – Update rate for pointing in secondslogical_bands (
list
[dict
]) – list of spectral bands to observe
- Return type:
- Returns:
A tuple containing a task status and a unique id string to identify the command
- end(task_callback=None)
Submit the End slow task.
This method returns immediately after it is submitted for execution.
- end_scan(task_callback=None, task_abort_event=None)
Submit the EndScan slow task.
This method returns immediately after it is submitted for execution.
- property first_channel: int
Return the first assigned subarray channel.
- Returns:
the first assigned subarray channel.
- property is_beam_locked: bool
Return whether the beam is locked.
- Returns:
whether the beam is locked
- property number_of_channels: int
Return the number of allocated subarray channels.
- Returns:
the number of channels
- obsreset(task_callback=None)
Submit the ObsReset command.
This method returns immediately after it is submitted for execution.
- release_all_resources(task_callback=None)
Submit the ReleaseAllResources slow task.
This method returns immediately after it is submitted for execution.
- release_resources(task_callback=None)
Submit the ReleaseResources slow task.
This method returns immediately after it is submitted for execution.
- restart(task_callback=None)
Submit the Restart command.
This method returns immediately after it is submitted for execution.
- scan(task_callback=None, *, scan_id, start_time=None, duration=0.0)
Submit the Scan slow task.
This method returns immediately after it is submitted for execution.
- Parameters:
- Return type:
- Returns:
Task status and response message