Library documentation
decode_data_blob()
Examples
Development
Decodes (compressed) 16-bit ADC values from BLOB to array of voltage values.
data_blob (bytes) – Blob from tradb
bytes
data_format (int) –
int
0: uncompressed
2: FLAC compression
factor_millivolts (float) – Factor from int16 representation to millivolts. Stored in tradb -> tr_params as ‘TR_mV’
float
raw (bool) – Return data as ADC values (np.int16), factor_millivolts will be ignored
bool
np.int16
ndarray
Array of voltage values or ADC values if raw is True