bec_lib.async_data.AsyncDataHandler#
- class AsyncDataHandler(connector: ConnectorBase)[source]#
Bases:
object
Methods
Get the async data for a given device in a scan.
Get the async data for a given scan.
Process the async data.
- get_async_data_for_device(scan_id: str, device_name: str) list [source]#
Get the async data for a given device in a scan.
- Parameters:
scan_id (str) – the scan id to get the async data for
device_name (str) – the device name to get the async data for
- Returns:
the async data for the device
- Return type:
list
- get_async_data_for_scan(scan_id: str) dict[list] [source]#
Get the async data for a given scan.
- Parameters:
scan_id (str) – the scan id to get the async data for
- Returns:
the async data for the scan sorted by device name
- Return type:
dict[list]
- static process_async_data(msgs: list[messages.DeviceMessage]) dict | list[dict] [source]#
Process the async data.
- Parameters:
device_name (str) – the name of the device
msgs (list[messages.DeviceMessage]) – the async data to process
- Returns:
the processed async data
- Return type:
list