Type aliases¶
Type aliases used in signatures. Import them from zarr_vectors.typing;
the top-level package does not re-export them.
Shared type aliases used throughout the zarr-vectors package.
These provide consistent typing across modules without importing heavy dependencies at type-check time.
- zarr_vectors.typing.AggregationMethod¶
One of: ‘mean’, ‘sum’, ‘mode’, ‘count’, ‘min’, ‘max’.
- zarr_vectors.typing.AttributeAggregation¶
Mapping from attribute name to aggregation method for coarsening.
- zarr_vectors.typing.BinCoords¶
Integer coordinates identifying a supervoxel bin, e.g. (0, 3, 7) for 3D. Bins are a finer spatial grid than chunks — multiple bins tile each chunk.
- zarr_vectors.typing.BinRatio¶
Per-dimension integer fold-change of bin shape relative to level 0, e.g. (2, 2, 2) means the bin is 2× wider in each axis at this level.
- zarr_vectors.typing.BinShape¶
Physical edge lengths of a supervoxel bin, e.g. (25.0, 25.0, 25.0). Must evenly divide the chunk shape in every dimension.
- zarr_vectors.typing.BoundingBox¶
(min_corner, max_corner) arrays, each shape (D,).
- zarr_vectors.typing.ChunkCoords¶
Integer coordinates identifying a spatial chunk, e.g. (0, 1, 2) for 3D.
- zarr_vectors.typing.ChunkShape¶
Physical size of a spatial chunk per dimension, e.g. (100.0, 100.0, 50.0).
- zarr_vectors.typing.CrossChunkLink¶
One link record as a pair of
(chunk_coords, local_vertex_index).Connectivity is one family: a record whose endpoints share a chunk is simply one whose relative offset is zero, so despite the name this shape describes any 2-endpoint link, and
write_linksaccepts it for both.alias of
tuple[tuple[tuple[int, …],int],tuple[tuple[int, …],int]]
- zarr_vectors.typing.CrossChunkStrategy¶
One of: ‘boundary_deduplication’, ‘explicit_links’, ‘both’.
- zarr_vectors.typing.Faces¶
(F, L) array of face indices — L vertices per face (3=tri, 4=quad).
alias of
NDArray[integer]
- zarr_vectors.typing.FragmentIndex¶
Index of a fragment within a spatial chunk (0-based).
- zarr_vectors.typing.FragmentRef¶
(chunk_coordinates, fragment_index).
- Type:
Reference to a fragment
- zarr_vectors.typing.GeometryType¶
One of: ‘point_cloud’, ‘line’, ‘polyline’, ‘streamline’, ‘skeleton’, ‘graph’, ‘mesh’.
- zarr_vectors.typing.GroupID¶
Integer identifier for a group of objects (tract, cell type, region, …).
- zarr_vectors.typing.LinksConvention¶
One of: ‘explicit’, ‘implicit_sequential’, ‘implicit_sequential_with_branches’.
- zarr_vectors.typing.ObjectID¶
Integer identifier for an object (streamline, neuron, mesh, cell, …).
- zarr_vectors.typing.ObjectIndexConvention¶
One of: ‘standard’, ‘identity’.
- zarr_vectors.typing.ObjectManifest¶
Ordered list of fragment references composing one object.