Skip to content

Commit c0b4510

Browse files
dodamihakhileshh
authored andcommitted
debug: sanity check in add_atomic_chunk
1 parent 02a8180 commit c0b4510

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pychunkedgraph/ingest/create/atomic_layer.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ def add_atomic_chunk(
3636

3737
chunk_ids = cg.get_chunk_ids_from_node_ids(chunk_node_ids)
3838
assert len(np.unique(chunk_ids)) == 1
39+
for chunk_id in chunk_ids:
40+
assert not cg.range_read_chunk(cg.get_parent_chunk_id(chunk_id))
3941

4042
graph, _, _, unique_ids = build_gt_graph(chunk_edge_ids, make_directed=True)
4143
ccs = connected_components(graph)

0 commit comments

Comments
 (0)