From 74d26c17966354e8f266b0b6db28d55b58750e3c 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 7a71b50..414bd15 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}