CbfSubarray Component Class

class ska_mid_cbf_mcs.subarray.subarray_component_manager.CbfSubarrayComponentManager(*args: Any, **kwargs: Any)[source]

Bases: CbfObsComponentManager

A component manager for the CbfSubarray device.

start_communicating(*args: Any, admin_mode: AdminMode, **kwargs: Any) None[source]

Thread for start_communicating operation.

delay_model_event_callback(event_data: EventData) None[source]

” Callback for delayModel change event subscription.

Parameters:

event_data – the received change event data

property assigned_fsp_proxies: Generator[tango.DeviceProxy]

Return an iterable containing all assigned Fsp device proxies.

get_configured_fsp_mode_proxies(obs_mode: ObsMode) Generator[tango.DeviceProxy][source]

Return an iterable containing all configured device proxies for a given ObsMode.

property configured_fsp_mode_proxies: Generator[tango.DeviceProxy]

Return an iterable containing all configured FSP ObsMode subarray device proxies.

property configured_vcc_proxies: Generator[tango.DeviceProxy]

Return a list of proxies to all currently configured VCCAllBandsController devices.

property configured_obs_proxies: Generator[tango.DeviceProxy]

Return a list of proxies to all currently assigned observing devices.

assign_vcc(params: str, task_callback: Callable | None = None, task_abort_event: Event | None = None) None[source]

Assign resources to subarray.

Parameters:
  • params – The JSON object containing a list of DISH (receptor) IDs to be assigned

  • task_callback – callback for driving status of task executor’s current LRC task

  • task_abort_event – event indicating Abort has been issued

release_vcc(params: str, task_callback: Callable | None = None, task_abort_event: Event | None = None) None[source]

Release dishes from subarray.

Parameters:
  • params – JSON string with the list of DISH (receptor) IDs to be removed

  • task_callback – callback for driving status of task executor’s current LRC task

  • task_abort_event – event indicating Abort has been issued

release_all_vcc(params: str, task_callback: Callable | None = None, task_abort_event: Event | None = None) None[source]

Release all resources/dishes from subarray.

Parameters:
  • task_callback – callback for driving status of task executor’s current LRC task

  • task_abort_event – event indicating Abort has been issued

configure_scan(params: str, task_callback: Callable | None = None, task_abort_event: Event | None = None) None[source]

Execute configure scan operation.

Parameters:
  • params – JSON string with the configure scan parameters

  • task_callback – callback for driving status of task executor’s current LRC task

  • task_abort_event – event indicating Abort has been issued

scan_start_time_rounded_callback(event_data: EventData)[source]

Callback for FspModeSubarray’s scanStartTimeRounded attribute change.

If _scan_started is False, set _scanStarted to True and sync the received scanStartTimeRounded as firstOutputTime to all FspModeSubarray devices in the subarray.

Parameters:

event_data (Optional[tango.EventData]) – Tango attribute change event data

scan(params: str, task_callback: Callable | None = None, task_abort_event: Event | None = None) None[source]

Start subarray Scan operation.

Parameters:
  • params – JSON formatted string with the scan id

  • task_callback – callback for driving status of task executor’s current LRC task

  • task_abort_event – event indicating Abort has been issued

end_scan(params: str, task_callback: Callable | None = None, task_abort_event: Event | None = None) None[source]

End scan operation.

Parameters:
  • params – JSON string with endscan input parameters

  • task_callback – callback for driving status of task executor’s current LRC task

  • task_abort_event – event indicating Abort has been issued

go_to_idle(params: str, task_callback: Callable | None = None, task_abort_event: Event | None = None) None[source]

Execute observing state transition from READY to IDLE.

Parameters:
  • params – JSON string with endscan input parameters

  • task_callback – callback for driving status of task executor’s current LRC task

  • task_abort_event – event indicating Abort has been issued

abort(params: str, task_callback: Callable | None = None, task_abort_event: Event | None = None) None[source]

Abort the current scan operation.

Due to the obsState model trigger “abort_completed” always transitioning out of ABORTING to ABORTED, this thread must not return until the very end, otherwise the device could successfully transition to ABORTED without issuing a scan abort to sub-devices (refactor in response to SKB-796).

Parameters:
  • params – JSON string with endscan input parameters

  • task_callback – callback for driving status of task executor’s current LRC task

  • task_abort_event – event indicating AbortCommands has been issued

Returns:

None

obs_reset(obsreset_params: str, task_callback: Callable | None = None, task_abort_event: Event | None = None) None[source]

Reset the scan operation to IDLE from ABORTED or FAULT.

Due to the obsState model trigger “obsreset_invoked” only allowing a transition out of ABORTED and FAULT states, and “obsreset_completed” always transitioning out of RESETTING to IDLE, this thread must not return until the very end, otherwise the device could successfully transition to IDLE without properly deconfiguring (refactor in response to SKB-796).

Parameters:
  • task_callback – callback for driving status of task executor’s current LRC task

  • task_abort_event – event indicating AbortCommands has been issued

Returns:

None

restart(restart_params: str, task_callback: Callable | None = None, task_abort_event: Event | None = None) None[source]

Reset the scan operation to EMPTY from ABORTED or FAULT.

Due to the obsState model trigger “restart_invoked” only allowing a transition out of ABORTED and FAULT states, and “restart_completed” always transitioning out of RESTARTING to EMPTY, this thread must not return until the very end, otherwise the device could successfully transition to EMPTY without properly deconfiguring (refactor in response to SKB-796).

Parameters:
  • task_callback – callback for driving status of task executor’s current LRC task

  • task_abort_event – event indicating AbortCommands has been issued

Returns:

None