Skip to content

Commit

Permalink
Remove unused TODO comment
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
yw7 committed Oct 9, 2024
1 parent 98bd244 commit 116413f
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion totalspineseg/utils/iterative_label.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 116413f

Please sign in to comment.