diff options
| author | J08nY | 2020-03-05 17:01:55 +0100 |
|---|---|---|
| committer | J08nY | 2020-03-05 17:01:55 +0100 |
| commit | cd3a7e66257dc0940b9c385d38029c3152234007 (patch) | |
| tree | 711b602f3fc0e6f71cf176a2b1bcee0a59753327 /test | |
| parent | 79de2bbc6f099b0bd1d79427aabd6113e87c31d3 (diff) | |
| download | pyecsca-cd3a7e66257dc0940b9c385d38029c3152234007.tar.gz pyecsca-cd3a7e66257dc0940b9c385d38029c3152234007.tar.zst pyecsca-cd3a7e66257dc0940b9c385d38029c3152234007.zip | |
Change scope pretrig/posttrig API.
Diffstat (limited to 'test')
| -rw-r--r-- | test/sca/test_traceset.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/sca/test_traceset.py b/test/sca/test_traceset.py index a3ff526..72eac47 100644 --- a/test/sca/test_traceset.py +++ b/test/sca/test_traceset.py @@ -1,6 +1,7 @@ import os.path import shutil import tempfile +from copy import deepcopy from unittest import TestCase import numpy as np @@ -97,7 +98,7 @@ class HDF5TraceSetTests(TestCase): trace_set = HDF5TraceSet.inplace(path) self.assertIsNotNone(trace_set) test_trace = Trace(np.array([6, 7], dtype=np.dtype("i1")), None, None, meta={"thing": "ring"}) - trace_set[0] = test_trace + trace_set[0] = deepcopy(test_trace) trace_set.save() trace_set.close() |
