From f9bc63393ddb3e713f41745700ad61dab2b23bbd Mon Sep 17 00:00:00 2001 From: Michael Oviedo Date: Mon, 9 Dec 2024 09:18:27 -0800 Subject: [PATCH] fix fetch for workload params (#704) Signed-off-by: Michael Oviedo --- osbenchmark/aggregator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osbenchmark/aggregator.py b/osbenchmark/aggregator.py index 58b0682a..016d90f4 100644 --- a/osbenchmark/aggregator.py +++ b/osbenchmark/aggregator.py @@ -23,7 +23,7 @@ def __init__(self, cfg, test_executions_dict, args): def count_iterations_for_each_op(self, test_execution) -> None: matching_test_procedure = next((tp for tp in self.loaded_workload.test_procedures if tp.name == self.test_procedure_name), None) - workload_params = getattr(test_execution, 'workload_params', {}) + workload_params = test_execution.workload_params if test_execution.workload_params else {} test_execution_id = test_execution.test_execution_id self.accumulated_iterations[test_execution_id] = {}