Skip to content

Commit

Permalink
BUG: Fix logic.
Browse files Browse the repository at this point in the history
  • Loading branch information
ntustison committed Nov 24, 2024
1 parent 45c190a commit 23024f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ants/registration/registration.py
Original file line number Diff line number Diff line change
Expand Up @@ -1700,7 +1700,7 @@ def label_image_registration(fixed_label_images,
total_number_of_labels += len(common_label_ids[i])
if verbose:
print("Common label ids for image pair ", str(i), ": ", common_label_ids[i])
if len(common_label_ids) == 0:
if len(common_label_ids[i]) == 0:
raise ValueError("No common labels for image pair " + str(i))

if verbose:
Expand Down

0 comments on commit 23024f3

Please sign in to comment.