Skip to content

Commit 2ff878a

Browse files
committed
Update collect_results.py.
1 parent d1bfe6c commit 2ff878a

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

runner/collect_results.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,13 @@ def create_json(all_data: pd.DataFrame) -> str:
7373
"value": all_data[is_correct_group(group)].mean_time_ms.mean(),
7474
"extra": f"Target: {group[0]}"
7575
f"\nTotal Iterations: {all_data[is_correct_group(group)].total_iterations.iloc[0]}"
76-
f"\nThreads: {group[2]}"
77-
f"\nScheduler: {group[-1]}"
76+
(f"\nThreads: {group[2]}" if group[2] is not None else "")
77+
(f"\nScheduler: {group[-1]}" if group[-1] is not None else "")
7878
}
79-
for group in product(*[all_data[p].unique() for p in group_by])
79+
for group in product(*[
80+
all_data[p].unique() if p in all_data.columns else [None]
81+
for p in group_by
82+
])
8083
]
8184

8285
def latest_subdirectory(parent):

0 commit comments

Comments
 (0)