diff options
Diffstat (limited to 'test/sca/test_sampling.py')
| -rw-r--r-- | test/sca/test_sampling.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/sca/test_sampling.py b/test/sca/test_sampling.py index 1af1579..79f55b4 100644 --- a/test/sca/test_sampling.py +++ b/test/sca/test_sampling.py @@ -8,7 +8,7 @@ from .utils import Plottable class SamplingTests(Plottable): def setUp(self): - self._trace = Trace(np.array([20, 40, 50, 50, 10], dtype=np.dtype("i1")), None, None) + self._trace = Trace(np.array([20, 40, 50, 50, 10], dtype=np.dtype("i1"))) def test_downsample_average(self): result = downsample_average(self._trace, 2) @@ -29,7 +29,7 @@ class SamplingTests(Plottable): def test_downsample_decimate(self): trace = Trace(np.array([20, 30, 55, 18, 15, 10, 35, 24, 21, 15, 10, 8, -10, -5, -8, -12, -15, -18, -34, -21, -17, -10, -5, -12, -6, -2, - 4, 8, 21, 28], dtype=np.dtype("i1")), None, None, None) + 4, 8, 21, 28], dtype=np.dtype("i1"))) result = downsample_decimate(trace, 2) self.assertIsNotNone(result) self.assertIsInstance(result, Trace) |
