bec_lib.scan_data.SignalData#

class SignalData[source]#

Bases: object

SignalData is a container for storing signal data.

Methods

get

Get the signal data at the given index.

items

keys

set

Set the signal data at the given index to the given device data.

val_to_dict

values

Attributes

timestamps

return a list of timestamps of the signal data

val

return a list of values of the signal data

get(index: Any, default=None) dict[source]#

Get the signal data at the given index.

Parameters:

index (int) – the index of the scan point

Returns:

the signal data at the given index

Return type:

dict

set(index: Any, device_data: dict) None[source]#

Set the signal data at the given index to the given device data.

Parameters:
  • index (int) – the index of the scan point

  • device_data (dict) – the device data to store

property timestamps#

return a list of timestamps of the signal data

property val#

return a list of values of the signal data