From 7339313b632784b122fb6e3dedada77f199145d4 Mon Sep 17 00:00:00 2001 From: Taylor Salo Date: Tue, 19 Sep 2023 15:23:06 -0400 Subject: [PATCH] Update execsummary.py --- xcp_d/interfaces/execsummary.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/xcp_d/interfaces/execsummary.py b/xcp_d/interfaces/execsummary.py index 391f32c9f..08d6caa11 100644 --- a/xcp_d/interfaces/execsummary.py +++ b/xcp_d/interfaces/execsummary.py @@ -215,10 +215,9 @@ def collect_inputs(self): # Convert any floats in the name to ints temp_dict = task_entity_namer[i_set] temp_dict = { - key: int(value) if isinstance(value, float) and value.is_integer() else value + key: int(value) if np.isscalar(value) and value.is_integer() else value for key, value in temp_dict.items() } - raise Exception(temp_dict) task_file_figures["key"] = "_".join([f"{k}-{v}" for k, v in temp_dict.items()]) query = {