- property tensorstore.ChunkLayout.read_chunk_template : IndexDomain
Chunk offset and shape for efficient reads.
Example
>>> layout = ts.ChunkLayout(grid_origin=[5, 6, 7], ... read_chunk_shape=[100, 200, 300]) >>> layout.read_chunk_template { [5, 105), [6, 206), [7, 307) }Note
Only the hard constraints
grid_originandshapeofread_chunkare taken into account. The soft constraintsgrid_origin_soft_constraintand all other constraints specified onread_chunkare ignored.For any dimension
ifor whichself.grid_origin[i] is Noneorself.read_chunk_shape[i] is None,self.read_chunk_template[i]is an unbounded intervalts.Dim():>>> layout = ts.ChunkLayout(grid_origin=[None, 6, 7], ... read_chunk_shape=[100, None, 200]) >>> layout.read_chunk_template { (-inf, +inf), (-inf, +inf), [7, 207) }- Raises:¶
ValueError – If
rankis unspecified orgrid_originandself.read_chunk.shapeare incompatible.
See also