From 116413f5f88f34378453a2255f73822bc2055daa Mon Sep 17 00:00:00 2001 From: Yehuda Warszawer <36595323+yw7@users.noreply.github.com> Date: Wed, 9 Oct 2024 18:09:06 +0300 Subject: [PATCH] Remove unused TODO comment Eliminated an outdated TODO note examining a potential edge case that is no longer relevant to the current implementation. This cleanup improves code clarity by removing unnecessary comments, thereby aiding maintainability and readability. --- totalspineseg/utils/iterative_label.py | 1 - 1 file changed, 1 deletion(-) diff --git a/totalspineseg/utils/iterative_label.py b/totalspineseg/utils/iterative_label.py index 62e3802..e2c13c0 100644 --- a/totalspineseg/utils/iterative_label.py +++ b/totalspineseg/utils/iterative_label.py @@ -1064,7 +1064,6 @@ def _get_landmark_output_labels( loc_data_masked = mask * loc_data # First we try to look for the landmarks in the localizer - # TODO Edge case if map_output_dict used for discs, but it is not used in the current implementation for output_label in np.array(landmark_output_labels)[np.isin(landmark_output_labels, loc_data_masked)].tolist(): # Map the label with the most voxels in the localizer landmark to the output label map_landmark_outputs[np.argmax(np.bincount(mask_labeled_masked[loc_data_masked == output_label].flat))] = output_label