tensorstore.Dim.__contains__(self, other: int) bool

Checks if the interval contains a given index.

Examples

>>> 5 in ts.Dim(inclusive_min=1, exclusive_max=10)
True
>>> 5 in ts.Dim()
True
>>> 5 in ts.Dim(inclusive_min=6)
False