aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/sca
diff options
context:
space:
mode:
authorTomáš Jusko2023-10-19 13:01:58 +0200
committerTomáš Jusko2023-10-19 13:01:58 +0200
commit6c8ea099eca9f5e8303a7b833253c838d7914665 (patch)
treece335a5fa66771e361f1f3e1671845d78b3c7abc /test/sca
parenta8d60bff6d4c70698cb4145cf1cc53cf215d4ad4 (diff)
downloadpyecsca-6c8ea099eca9f5e8303a7b833253c838d7914665.tar.gz
pyecsca-6c8ea099eca9f5e8303a7b833253c838d7914665.tar.zst
pyecsca-6c8ea099eca9f5e8303a7b833253c838d7914665.zip
Added default arguments to perf script stack function
Diffstat (limited to 'test/sca')
-rw-r--r--test/sca/perf_stacked_combine.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/sca/perf_stacked_combine.py b/test/sca/perf_stacked_combine.py
index 999d877..693a853 100644
--- a/test/sca/perf_stacked_combine.py
+++ b/test/sca/perf_stacked_combine.py
@@ -169,10 +169,14 @@ def to_traceset(dataset: np.ndarray) -> TraceSet:
def stack(dataset: np.ndarray,
from_array: bool,
- time: bool,
- timing_type: str,
+ time: bool = False,
+ timing_type: str | None = None,
time_storage: List[TimeRecord] | None = None,
log: bool = True) -> StackedTraces:
+ if timing_type is None:
+ timing_type = "perf_counter"
+ if time and time_storage is None:
+ time_storage = []
time_fun = timed(time_storage, log, timing_type) if time else lambda x: x
data = (dataset
if from_array