aboutsummaryrefslogtreecommitdiff
path: root/test/sca/test_sampling.py
diff options
context:
space:
mode:
authorJ08nY2020-03-07 21:42:03 +0100
committerJ08nY2020-03-07 21:42:03 +0100
commit38d04f0d19059b2d8c6ad8fc46a9eec67946fffe (patch)
treed1c59ce418cd244f548dc07729e0a8157ffef850 /test/sca/test_sampling.py
parent8b8389ce6177cff95865280c9476569dd1abb7c7 (diff)
downloadpyecsca-38d04f0d19059b2d8c6ad8fc46a9eec67946fffe.tar.gz
pyecsca-38d04f0d19059b2d8c6ad8fc46a9eec67946fffe.tar.zst
pyecsca-38d04f0d19059b2d8c6ad8fc46a9eec67946fffe.zip
Diffstat (limited to 'test/sca/test_sampling.py')
-rw-r--r--test/sca/test_sampling.py4
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)