Skip to content

Commit

Permalink
fix: removed labels will not always have an assigned fill count
Browse files Browse the repository at this point in the history
  • Loading branch information
William Silversmith committed Jun 22, 2024
1 parent 037d594 commit 37d37cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fastmorph/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ def fill_holes(

if return_fill_count:
for label in removed_set:
del fill_counts[label]
fill_counts.pop(label, None)
ret.append(fill_counts)

if return_removed:
Expand Down

0 comments on commit 37d37cc

Please # to comment.