From 6c8ea099eca9f5e8303a7b833253c838d7914665 Mon Sep 17 00:00:00 2001 From: Tomáš Jusko Date: Thu, 19 Oct 2023 13:01:58 +0200 Subject: Added default arguments to perf script stack function --- test/sca/perf_stacked_combine.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'test/sca') 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 -- cgit v1.2.3-70-g09d2