From 4568d9b1079097ced56ee2aedd9158c913b29403 Mon Sep 17 00:00:00 2001 From: Lin Guo Date: Tue, 1 Oct 2024 16:10:16 -0700 Subject: [PATCH] Skip stat calc when no aggregatable FOMs This is an edge case, but can happen when use `n_repeats` on apps that don't have numeric FOMs. Without this change, `workspace analyze` will fail with out-of-bound index. --- lib/ramble/ramble/application.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/ramble/ramble/application.py b/lib/ramble/ramble/application.py index b37c737d8..c8680591d 100644 --- a/lib/ramble/ramble/application.py +++ b/lib/ramble/ramble/application.py @@ -1903,6 +1903,9 @@ def is_numeric(value): # Iterate through the aggregated foms, calculate stats, and insert into results for context, fom_dict in repeat_foms.items(): + if not fom_dict: + continue + context_map = { "name": context, "foms": [],