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