From cd8d9d47896897edba3825e4ed17dd3d65cb861a Mon Sep 17 00:00:00 2001 From: Nathan Molinier Date: Thu, 28 Nov 2024 11:12:44 -0500 Subject: [PATCH] add missing parentheses --- compute_metrics_reloaded.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compute_metrics_reloaded.py b/compute_metrics_reloaded.py index 33bc39e..078c8df 100644 --- a/compute_metrics_reloaded.py +++ b/compute_metrics_reloaded.py @@ -161,7 +161,7 @@ def compute_metrics_single_subject(prediction, reference, metrics, ref_map, pred unique_labels = np.unique(np.concatenate((unique_labels_reference, unique_labels_prediction))) else: # Get the unique labels that are present in the reference OR prediction images - unique_labels = np.unique(np.concatenate(list(ref_map.keys()), list(pred_map.keys()))) + unique_labels = np.unique(np.concatenate((list(ref_map.keys()), list(pred_map.keys())))) # append entry into the output_list to store the metrics for the current subject metrics_dict = {'reference': reference, 'prediction': prediction}