def plot_raw_preproc_data(self, d_raw, d_preproc, ts):
    '[debugging function to check the diff between the raw and pre-processed data]\n\n        Args:\n            d_raw ([type]): [description]\n            d_preproc ([type]): [description]\n            ts ([type]): [description]\n        '
    if (not hasattr(self, 'rawringbuffer')):
        self.preprocringbuffer = RingBuffer(maxsize=(self.fs * 3), shape=((d_preproc.shape[(- 1)] + 1),))
        self.rawringbuffer = RingBuffer(maxsize=(self.raw_fs * 3), shape=((d_raw.shape[(- 1)] + 1),))
    d_preproc = self.add_sample_timestamps(d_preproc, ts, self.fs)
    self.preprocringbuffer.extend(d_preproc)
    d_raw = self.add_sample_timestamps(d_raw, ts, self.raw_fs)
    self.rawringbuffer.extend(d_raw)
    if ((self.last_sigquality_ts is None) or (ts > (self.last_sigquality_ts + self.send_sigquality_interval))):
        import matplotlib.pyplot as plt
        plt.figure(10)
        plt.clf()
        idx = np.flatnonzero(self.rawringbuffer[:, (- 1)])[0]
        plt.subplot(211)
        plt.cla()
        plt.plot(self.rawringbuffer[idx:, (- 1)], self.rawringbuffer[idx:, :(- 1)])
        idx = np.flatnonzero(self.preprocringbuffer[:, (- 1)])[0]
        plt.subplot(212)
        plt.cla()
        plt.plot(self.preprocringbuffer[idx:, (- 1)], self.preprocringbuffer[idx:, :(- 1)])
        plt.show(block=False)
[debugging function to check the diff between the raw and pre-processed data]

Args:
    d_raw ([type]): [description]
    d_preproc ([type]): [description]
    ts ([type]): [description]
def plot_raw_preproc_data(self, d_raw, d_preproc, ts):
    '[debugging function to check the diff between the raw and pre-processed data]\n\n        Args:\n            d_raw ([type]): [description]\n            d_preproc ([type]): [description]\n            ts ([type]): [description]\n        '
    if (not hasattr(self, 'rawringbuffer')):
        self.preprocringbuffer = RingBuffer(maxsize=(self.fs * 3), shape=((d_preproc.shape[(- 1)] + 1),))
        self.rawringbuffer = RingBuffer(maxsize=(self.raw_fs * 3), shape=((d_raw.shape[(- 1)] + 1),))
    d_preproc = self.add_sample_timestamps(d_preproc, ts, self.fs)
    self.preprocringbuffer.extend(d_preproc)
    d_raw = self.add_sample_timestamps(d_raw, ts, self.raw_fs)
    self.rawringbuffer.extend(d_raw)
    if ((self.last_sigquality_ts is None) or (ts > (self.last_sigquality_ts + self.send_sigquality_interval))):
        import matplotlib.pyplot as plt
        plt.figure(10)
        plt.clf()
        idx = np.flatnonzero(self.rawringbuffer[:, (- 1)])[0]
        plt.subplot(211)
        plt.cla()
        plt.plot(self.rawringbuffer[idx:, (- 1)], self.rawringbuffer[idx:, :(- 1)])
        idx = np.flatnonzero(self.preprocringbuffer[:, (- 1)])[0]
        plt.subplot(212)
        plt.cla()
        plt.plot(self.preprocringbuffer[idx:, (- 1)], self.preprocringbuffer[idx:, :(- 1)])
        plt.show(block=False)