tensorstore.IndexDomain.translate_by[self, offsets: Sequence[int | None] | int | None] IndexDomain

Returns a new view with the origin translated by the specified offsets.

This is equivalent to self[ts.d[:].translate_by[offsets]].

offsets: 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. Specifying None for a given dimension (equivalent to specifying an offset of 0) leaves the origin of that dimension unchanged.