From 2f1189b47adbcb4324199a958b8733ddc70c3bc3 Mon Sep 17 00:00:00 2001 From: Andrew White Date: Mon, 27 Jul 2026 07:19:36 -0500 Subject: [PATCH] fix: DALI warmup slicing can leave empty list before min() --- bobber/lib/analysis/dali.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/bobber/lib/analysis/dali.py b/bobber/lib/analysis/dali.py index c5cd736..ab6e73a 100644 --- a/bobber/lib/analysis/dali.py +++ b/bobber/lib/analysis/dali.py @@ -207,7 +207,12 @@ def _result_parsing(log_contents: str, systems: int, image_results: dict, # be off, and one node will showcase the 2nd test pass before all nodes # have finished the first. To accomodate for this, the lowest N results # are assumed to be the first test pass and are dropped. - all_speeds = sorted(all_speeds)[systems:] + all_speeds = sorted(all_speeds) + if len(all_speeds) <= systems: + print(f'Warning: Not enough DALI speed samples in {log_file}; ' + 'skipping...') + return {} + all_speeds = all_speeds[systems:] image_type_match[num] = _update_results(image_type_match[num], all_speeds)