neu_vol.ops.align¶
The block grid a box should be aligned to, from a volume’s own chunking and pyramid.
Attributes¶
Functions¶
|
|
Module Contents¶
- neu_vol.ops.align.align_grid(described: Mapping[str, Any], volume: str, *, level: int = 0, to: str = 'write-unit') tuple[tuple[int, ...], str]¶
(block in level-0 voxels, where it came from)for one ofGRIDS.describedisneu_vol.describe()’s output forvolume.write-unitis the level’s chunk, or its shard where sharded (the object a partial write rewrites);read-chunkthe inner chunk;pyramidthe deepest level’s cumulative factor, the grid every level shares;boththe LCM of the write unit and that factor. RaisesValueErrorif the volume does not report what the grid needs.
- neu_vol.ops.align.GRIDS = ('write-unit', 'read-chunk', 'pyramid', 'both')¶