Skip to content

Commit

Permalink
fix: out edges here dont refer to edges crossing chunk
Browse files Browse the repository at this point in the history
  • Loading branch information
akhileshh committed Aug 31, 2023
1 parent 6396328 commit 5f383ae
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions pychunkedgraph/graph/edits.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,10 +304,7 @@ def _process_l2_agglomeration(
chunk_edges = agg.in_edges.get_pairs()
chunk_edges = chunk_edges[~in2d(chunk_edges, removed_edges)]

# cross during edits refers to all edges crossing chunk boundary
cross_edges = [agg.out_edges.get_pairs(), agg.cross_edges.get_pairs()]
cross_edges = np.concatenate(cross_edges)

cross_edges = agg.cross_edges.get_pairs()
parents = cg.get_parents(cross_edges[:, 0], time_stamp=parent_ts, raw_only=True)
assert np.unique(parents).size == 1, "got cross edges from more than one l2 node"
root = cg.get_root(parents[0], time_stamp=parent_ts, raw_only=True)
Expand Down

0 comments on commit 5f383ae

Please sign in to comment.