tensorstore_demo.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

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(inclusive_min=5, inclusive_max=10)
>>> x
Dim(inclusive_min=5, exclusive_max=11)
>>> print(x)
[5, 11)

Last update: Nov 16, 2024