- tensorstore.Spec.translate_by[self, offsets: collections.abc.Sequence[int | None] | int | None] Spec
Returns a new view with the
origin
translated by the specified offsets.This is equivalent to
self[ts.d[:].translate_by[offsets]]
.- Parameters:¶
- offsets: collections.abc.Sequence[int | None] | int | None¶
The offset for each dimension. May also be a scalar, e.g.
5
, in which case the same offset is used for all dimensions. SpecifyingNone
for a given dimension (equivalent to specifying an offset of0
) leaves the origin of that dimension unchanged.