tensorstore.TensorStore.transpose(self, axes: DimSelectionLike | None = None) TensorStore

Returns a view with a transposed domain.

This is equivalent to self[ts.d[axes].transpose[:]].

Parameters:
axes: DimSelectionLike | None = None

Specifies the existing dimension corresponding to each dimension of the new view. Dimensions may be specified either by index or label. Specifying None is equivalent to specifying [rank-1, ..., 0], which reverses the dimension order.

Raises:

ValueError – If axes does not specify a valid permutation.