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

indices

The indices contained within the interval.

lower

The interval's inclusive lower bound.

upper

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.