CycleInterval
- class CycleInterval(lower_or_tuple, upper=None)[source]
Bases:
tuple[int,int]The CycleInterval class.
Represents an inclusive range of cycles in a given circuit.
- __init__()
Attributes
The indices contained within the interval.
The interval's inclusive lower bound.
The interval's inclusive upper bound.
Methods
count(value, /)Return number of occurrences of value.
index(value[, start, stop])Return first index of value.
intersection(other)Return the range defined by both self and other interval.
is_interval(interval)Return true if interval is a IntervalLike.
overlaps(other)Return true if other overlaps with this interval.
union(other)Return the range defined by self or other interval.