RECV Simulator

Module for providing the Simulated RECV capability for the Pulsar Timing Sub-element.

ska_pst_lmc.receive.receive_simulator.random() x in the interval [0, 1).
ska_pst_lmc.receive.receive_simulator.generate_random_update() ReceiveData[source]

Generate a random update of ReceivedData.

class ska_pst_lmc.receive.receive_simulator.PstReceiveSimulator(num_subbands: Optional[int] = None, **kwargs: Any)[source]

Simulator for the RECV process of the PST.LMC sub-system.

This is used to generate random data and simulate what happens during the RECV process. Current implementation has this internally with the TANGO device but future improvements will have this as a separate process and the TANGO will connect via an API.

Initialise the simulator.

configure_scan(configuration: dict) None[source]

Simulate configuring a scan.

Only the “nchan” parameter is used by this simulator.

Parameters

configuration (dict) – the configuration to be configured

deconfigure_scan() None[source]

Simulate deconfiguring of a scan.

start_scan(args: dict) None[source]

Simulate start scanning.

Param

the scan arguments.

stop_scan() None[source]

Simulate stop scanning.

abort() None[source]

Tell the component to abort whatever it was doing.

reset() None[source]

Tell the component to reset whatever it was doing.

get_data() ReceiveData[source]

Get current RECV data.

Updates the current simulated data and returns the latest data.

Returns

current simulated RECV data.

Return type

ReceiveData

get_subband_data() Dict[int, ReceiveData][source]

Get simulated subband data.