Skip to content

Commit

Permalink
bug: filtering
Browse files Browse the repository at this point in the history
  • Loading branch information
anna-grim committed Nov 19, 2024
1 parent b7ba0c4 commit a384a25
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/deep_neurographs/fragment_filtering.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ def remove_curvy(fragments_graph, max_length, ratio=0.5):
length = fragments_graph.edges[i, j]["length"]
endpoint_dist = fragments_graph.dist(i, j)
if endpoint_dist / length < ratio and length < max_length:
print(i, j)
deleted_ids.add(fragments_graph.edges[i, j]["swc_id"])
delete_fragment(fragments_graph, i, j)
return len(deleted_ids)
Expand Down

0 comments on commit a384a25

Please sign in to comment.