Skip to content

Commit c0d4e5d

Browse files
anna-grimanna-grim
andauthored
Feat localize merge (#100)
* feat: localize merges * feat: save projections --------- Co-authored-by: anna-grim <[email protected]>
1 parent 689fdfc commit c0d4e5d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/segmentation_skeleton_metrics/skeleton_metric.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -543,6 +543,7 @@ def count_merges(self, key, kdtree):
543543
if self.save_projections:
544544
zip_path = os.path.join(self.projections_dir, key + ".zip")
545545
zip_writer = ZipFile(zip_path, "w")
546+
#self.graphs[key].to_zipped_swc(zip_writer)
546547

547548
# Iterate over fragments that intersect with GT skeleton
548549
for label in self.get_node_labels(key):

src/segmentation_skeleton_metrics/split_detection.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,15 @@ def run(process_id, graph):
4646
label_i = int(graph.labels[i])
4747
label_j = int(graph.labels[j])
4848
if is_split(label_i, label_j):
49-
graph.remove_edge(i, j)
49+
graph.remove_edge(i, j) temp
5050
split_cnt += 1
5151
elif label_j == 0:
5252
check_misalignment(graph, visited_edges, i, j)
5353
visited_edges.add(frozenset({i, j}))
5454

5555
# Finish
5656
split_percent = split_cnt / graph.graph["n_edges"]
57-
graph.remove_nodes_with_label(0)
57+
graph.remove_nodes_with_label(0) temp
5858
return process_id, graph, split_percent
5959

6060

0 commit comments

Comments
 (0)