Skip to content

Commit

Permalink
add missing parentheses
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanMolinier committed Nov 28, 2024
1 parent 9eaf1af commit cd8d9d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compute_metrics_reloaded.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit cd8d9d4

Please sign in to comment.