def processDataPacket(self, m: DataPacket):
    '[pre-process a datapacket message ready to be inserted into the ringbuffer]\n\n        Args:\n            m (DataPacket): [description]\n\n        Returns:\n            [type]: [description]\n        '
    d = np.array(m.samples, dtype=np.float32)
    if self.data_preprocessor:
        d_raw = d.copy()
        d = self.data_preprocessor.transform(d)
        if (self.send_signalquality and (self.data_ringbuffer is not None)):
            self.update_and_send_ElectrodeQualities(d_raw, d, m.timestamp)
    if (d.size > 0):
        if ((self.data_timestamp is not None) and (m.timestamp < self.data_timestamp)):
            print('Warning: Time-stamp wrap-around detected!!')
        d = self.add_sample_timestamps(d, m.timestamp, self.fs)
    self.data_timestamp = m.timestamp
    return d
[pre-process a datapacket message ready to be inserted into the ringbuffer]

Args:
    m (DataPacket): [description]

Returns:
    [type]: [description]
def processDataPacket(self, m: DataPacket):
    '[pre-process a datapacket message ready to be inserted into the ringbuffer]\n\n        Args:\n            m (DataPacket): [description]\n\n        Returns:\n            [type]: [description]\n        '
    d = np.array(m.samples, dtype=np.float32)
    if self.data_preprocessor:
        d_raw = d.copy()
        d = self.data_preprocessor.transform(d)
        if (self.send_signalquality and (self.data_ringbuffer is not None)):
            self.update_and_send_ElectrodeQualities(d_raw, d, m.timestamp)
    if (d.size > 0):
        if ((self.data_timestamp is not None) and (m.timestamp < self.data_timestamp)):
            print('Warning: Time-stamp wrap-around detected!!')
        d = self.add_sample_timestamps(d, m.timestamp, self.fs)
    self.data_timestamp = m.timestamp
    return d