def test_boxcar(self): """ Testing boxcar function. """ trace = self.orig_trace.copy() options = {'width': 500} # filtering manual self.filt_trace_data = signal.boxcar(trace, **options) # filtering real time process_list = [('boxcar', options)] self._run_rt_process(process_list) # check results peak = np.amax(np.abs(self.rt_trace.data)) self.assertAlmostEqual(peak, 566974.214, 3) np.testing.assert_almost_equal(self.filt_trace_data, self.rt_trace.data)
def test_boxcar(self): """ Testing boxcar function. """ trace = self.orig_trace.copy() options = {'width': 500} # filtering manual self.filt_trace_data = signal.boxcar(trace, **options) # filtering real time process_list = [('boxcar', options)] self._runRtProcess(process_list) # check results peak = np.amax(np.abs(self.rt_trace.data)) self.assertAlmostEqual(peak, 566974.214, 3) np.testing.assert_almost_equal(self.filt_trace_data, self.rt_trace.data)