Skip to content

Commit

Permalink
fix(manifest): chunk shape in nm
Browse files Browse the repository at this point in the history
  • Loading branch information
akhileshh committed Apr 22, 2024
1 parent b0f0070 commit e54bbf5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pychunkedgraph/meshing/manifest/multiscale.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,11 @@ def get_manifest(cg: ChunkedGraph, node_id: NODE_ID) -> Dict:
octree, node_ids, fragments = build_octree(cg, node_id, node_children, fragments_d)
max_layer = min(cg.get_chunk_layer(node_id) + 1, cg.meta.layer_count)

chunk_shape = np.array(cg.meta.graph_config.CHUNK_SIZE, dtype=np.dtype("<f4"))
chunk_shape *= cg.meta.resolution

response = {
"chunkShape": np.array(cg.meta.graph_config.CHUNK_SIZE, dtype=np.dtype("<f4")),
"chunkShape": chunk_shape,
"chunkGridSpatialOrigin": np.array([0, 0, 0], dtype=np.dtype("<f4")),
"lodScales": 2 ** np.arange(max_layer, dtype=np.dtype("<f4")) * 1,
"fragments": normalize_fragments(fragments),
Expand Down

0 comments on commit e54bbf5

Please sign in to comment.