Skip to content

Commit

Permalink
fix(upgrade): include timestamps for partner supervoxel parents
Browse files Browse the repository at this point in the history
  • Loading branch information
akhileshh committed Nov 10, 2024
1 parent dcbecd1 commit 50a987b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pychunkedgraph/ingest/upgrade/atomic_layer.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@


def update_cross_edges(
cg: ChunkedGraph, node, cx_edges_d, node_ts, timestamps, earliest_ts
cg: ChunkedGraph, node, cx_edges_d: dict, node_ts, timestamps: set, earliest_ts
) -> list:
"""
Helper function to update a single L2 ID.
Expand All @@ -27,7 +27,11 @@ def update_cross_edges(
assert not exists_as_parent(cg, node, edges[:, 0])
return rows

for ts in timestamps:
partner_parent_ts_d = get_parent_timestamps(cg, edges[:, 1])
for v in partner_parent_ts_d.values():
timestamps.update(v)

for ts in sorted(timestamps):
if ts < earliest_ts:
ts = earliest_ts
val_dict = {}
Expand Down

0 comments on commit 50a987b

Please sign in to comment.