Library documentation
encode_data_blob()
Examples
Development
Encodes array of voltage values to BLOB of 16-bit ADC values for memory-efficient storage.
data (ndarray) – Array with voltage values
ndarray
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) – Provide data as ADC values (int16), factor_millivolts will be ignored
bool
bytes
Data blob