tensorstore.Dim.intersect(self, other: Dim) Dim

Intersect with another Dim.

The implicit flag that corresponds to the selected bound is propagated. The label field, if non-empty, must match, and will be propagated.

Parameters:
other: Dim

Object to intersect with.

Example

>>> a = ts.Dim(inclusive_min=1, exclusive_max=5, label='x')
>>> a.intersect(ts.Dim(size=3))
Dim(inclusive_min=1, exclusive_max=3, label="x")