Skip to content

Commit e54bbf5

Browse files
committed
fix(manifest): chunk shape in nm
1 parent b0f0070 commit e54bbf5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pychunkedgraph/meshing/manifest/multiscale.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,8 +191,11 @@ def get_manifest(cg: ChunkedGraph, node_id: NODE_ID) -> Dict:
191191
octree, node_ids, fragments = build_octree(cg, node_id, node_children, fragments_d)
192192
max_layer = min(cg.get_chunk_layer(node_id) + 1, cg.meta.layer_count)
193193

194+
chunk_shape = np.array(cg.meta.graph_config.CHUNK_SIZE, dtype=np.dtype("<f4"))
195+
chunk_shape *= cg.meta.resolution
196+
194197
response = {
195-
"chunkShape": np.array(cg.meta.graph_config.CHUNK_SIZE, dtype=np.dtype("<f4")),
198+
"chunkShape": chunk_shape,
196199
"chunkGridSpatialOrigin": np.array([0, 0, 0], dtype=np.dtype("<f4")),
197200
"lodScales": 2 ** np.arange(max_layer, dtype=np.dtype("<f4")) * 1,
198201
"fragments": normalize_fragments(fragments),

0 commit comments

Comments
 (0)