diff options
| author | Tomáš Jusko | 2023-10-19 13:01:58 +0200 |
|---|---|---|
| committer | Tomáš Jusko | 2023-10-19 13:01:58 +0200 |
| commit | 6c8ea099eca9f5e8303a7b833253c838d7914665 (patch) | |
| tree | ce335a5fa66771e361f1f3e1671845d78b3c7abc /test/sca | |
| parent | a8d60bff6d4c70698cb4145cf1cc53cf215d4ad4 (diff) | |
| download | pyecsca-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.py | 8 |
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 |
