pylab_ml.common.data

Data manipulation functions.

Functions

Parity(data[, even])

Return the parity-bit from the data.

byte2uint(list8)

Return a list with 32-bit data from a imput list with 8-bit data.

byte2word(list8)

Return a list with 16-bit data from a imput list with 8-bit data.

complement(value, bits)

Binary complement from a positive value with number of bits.

complement2(value, bits)

2's complement representation from a value with number of bits.

crc16(word_array)

Calculate CRC-16 on array.

crc4(data)

Calculate 4-bit crc from a data with width bits.

datetime([typ])

Return the acual time as a string (year, month, day, _, hour, min, sec).

j1850_crc(buffer[, length])

J1850 CRC-Calculation.

signed_data(f[, bitwidth])

Convert to signed_data.

str2num(value[, base, default])

translate str to numeric value.

unsigned_data(f)

Convert to 16-bit unsigned_data.