-
tensorstore.Dim(*, inclusive_min: int | None =
-inf
, inclusive_max: int | None =+inf
, label: str | None =None
, implicit_lower: bool | None =None
, implicit_upper: bool | None =None
) Constructs a closed interval
[inclusive_min, inclusive_max]
.- Parameters:¶
- inclusive_min: int | None =
-inf
¶ Inclusive lower bound.
- inclusive_max: int | None =
+inf
¶ Inclusive upper bound.
- label: str | None =
None
¶ - implicit_lower: bool | None =
None
¶ Indicates whether the lower bound is implicit. Defaults to
False
ifinclusive_min
is specified, otherwiseTrue
.- implicit_upper: bool | None =
None
¶ Indicates whether the upper bound is implicit. Defaults to
False
ifexclusive_max
is specified, otherwiseTrue
.
- inclusive_min: int | None =
Examples
>>> x = ts.Dim(inclusive_min=5, inclusive_max=10) >>> x Dim(inclusive_min=5, exclusive_max=11) >>> print(x) [5, 11)