tensorstore.Dim(inclusive_min: int | None = -inf, exclusive_max: int | None = +inf, *, label: str | None = None, implicit_lower: bool | None = None, implicit_upper: bool | None = None)

Constructs a half-open interval [inclusive_min, exclusive_max).

Parameters:
inclusive_min: int | None = -inf

Inclusive lower bound.

exclusive_max: int | None = +inf

Exclusive upper bound.

label: str | None = None

Dimension label.

implicit_lower: bool | None = None

Indicates whether the lower bound is implicit. Defaults to False if inclusive_min is specified, otherwise True.

implicit_upper: bool | None = None

Indicates whether the upper bound is implicit. Defaults to False if exclusive_max is specified, otherwise True.

Examples

>>> x = ts.Dim(5, 10)
>>> x
Dim(inclusive_min=5, exclusive_max=10)
>>> print(x)
[5, 10)