Skip to content

Commit

Permalink
Update execsummary.py
Browse files Browse the repository at this point in the history
  • Loading branch information
tsalo committed Sep 19, 2023
1 parent 7339313 commit 6486c7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xcp_d/interfaces/execsummary.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ 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 np.isscalar(value) and value.is_integer() else value
key: int(value) if np.isscalar(value) and float(value).is_integer() else value
for key, value in temp_dict.items()
}
task_file_figures["key"] = "_".join([f"{k}-{v}" for k, v in temp_dict.items()])
Expand Down

0 comments on commit 6486c7c

Please sign in to comment.