SMRB Simulator
Module for providing the Simulated SMRB capability.
- class ska_pst_lmc.smrb.smrb_simulator.PstSmrbSimulator(num_subbands: Optional[int] = None, subband_num_of_buffers: Optional[List[int]] = None, subband_ring_buffer_sizes: Optional[List[int]] = None)[source]
Class used for simulating SMRB data.
Initialise the SMRB simulator.
- Parameters
num_subbands (int) – number of subbands, if None a random number is used.
subband_ring_buffer_sizes (list of ints) – list of sizes of subbands
- Raises
AssertionError if length of subband sizes not the same as num_subbands.
- configure_scan(configuration: dict) None [source]
Simulate configuring a scan.
Only the “num_subbands” parameter is used by this simulator and the “subband_ring_buffer_sizes” which should be a list the same length as the “num_subbands”
- Parameters
configuration (dict) – the configuration to be configured
- Raises
AssertionError if length of subband sizes not the same as num_subbands.
- get_data() SmrbMonitorData [source]
Get current SMRB data.
Updates the current simulated data and returns the latest data.
- Returns
current simulated SMRB data.
- Return type
SmrbMonitorData
- get_subband_data() Dict[int, SmrbSubbandMonitorData] [source]
Get simulated subband data.