Пример #1
0
 def test_tauc(self):
     """
     Testing tauc function.
     """
     trace = self.orig_trace.copy()
     options = {'width': 60}
     # filtering manual
     self.filt_trace_data = signal.tauc(trace, **options)
     # filtering real time
     process_list = [('tauc', options)]
     self._run_rt_process(process_list)
     # check results
     peak = np.amax(np.abs(self.rt_trace.data))
     self.assertAlmostEqual(peak, 114.302, 3)
     np.testing.assert_almost_equal(self.filt_trace_data,
                                    self.rt_trace.data)
Пример #2
0
 def test_tauc(self):
     """
     Testing tauc function.
     """
     trace = self.orig_trace.copy()
     options = {'width': 60}
     # filtering manual
     self.filt_trace_data = signal.tauc(trace, **options)
     # filtering real time
     process_list = [('tauc', options)]
     self._runRtProcess(process_list)
     # check results
     peak = np.amax(np.abs(self.rt_trace.data))
     self.assertAlmostEqual(peak, 114.302, 3)
     np.testing.assert_almost_equal(self.filt_trace_data,
                                    self.rt_trace.data)