-
tensorstore.ChunkLayout.Grid.update(self, *, rank: int | None =
None, shape: Iterable[int | None] | None =None, shape_soft_constraint: Iterable[int | None] | None =None, aspect_ratio: Iterable[float | None] | None =None, aspect_ratio_soft_constraint: Iterable[float | None] | None =None, elements: int | None =None, elements_soft_constraint: int | None =None, grid: ChunkLayout.Grid | None =None, grid_soft_constraint: ChunkLayout.Grid | None =None) None Adds additional constraints.
- Parameters:¶
- rank: int | None =
None¶ Specifies the number of dimensions.
- shape: Iterable[int | None] | None =
None¶ Hard constraints on the chunk size for each dimension. Corresponds to
ChunkLayout/Grid.shape.- shape_soft_constraint: Iterable[int | None] | None =
None¶ Soft constraints on the chunk size for each dimension. Corresponds to
ChunkLayout/Grid.shape_soft_constraint.- aspect_ratio: Iterable[float | None] | None =
None¶ Aspect ratio for each dimension. Corresponds to
ChunkLayout/Grid.aspect_ratio.- aspect_ratio_soft_constraint: Iterable[float | None] | None =
None¶ Soft constraints on the aspect ratio for each dimension. Corresponds to
ChunkLayout/Grid.aspect_ratio_soft_constraint.- elements: int | None =
None¶ Target number of elements per chunk. Corresponds to
ChunkLayout/Grid.elements.- elements_soft_constraint: int | None =
None¶ Soft constraint on the target number of elements per chunk. Corresponds to
ChunkLayout/Grid.elements_soft_constraint.- grid: ChunkLayout.Grid | None =
None¶ Other grid constraints to merge in. Hard and soft constraints in
gridare retained as hard and soft constraints, respectively.- grid_soft_constraint: ChunkLayout.Grid | None =
None¶ Other grid constraints to merge in as soft constraints.
- rank: int | None =