Skip to content

Commit 0723352

Browse files
committed
fix(edits): ignore new ids in neighbor update
1 parent 026486d commit 0723352

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pychunkedgraph/graph/edits.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -603,6 +603,9 @@ def _update_skipped_neighbors(self, node, layer, parent_layer):
603603
layer_edges = cx_edges_d.get(l, types.empty_2d)
604604
neighbors = layer_edges[:, 1]
605605
for n in neighbors:
606+
if n in self._new_old_id_d:
607+
# ignore new ids
608+
continue
606609
res = self._update_neighbor_parents(n, parent_layer, updated_parents)
607610
updated_parents.update(res)
608611

0 commit comments

Comments
 (0)