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 86f5ac6 commit 7339313
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions xcp_d/interfaces/execsummary.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit 7339313

Please sign in to comment.