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 Feb 28, 2024
1 parent 3ced82d commit 8041e50
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 8041e50

Please sign in to comment.