tnetwork.utils.Intervals.__contains__

Intervals.__contains__(time)[source]

Defines the in operator

>>> a = Intervals((0,6))
>>> b = Intervals((1,2))
>>> if b in a:
>>>    print("b is contained in a")
Parameters:o – other interval
Returns: