TimeSegmentSequence

class TimeSegmentSequence(iterable=None)

Represent sequence of time segments.

The class is a high-level structure that organizes a pulses into consecutive, non-overlapping TimeSegment objects. Each segment contains the pulses that are active during its time interval and provides metadata for simulation and visualization.

Initialize a time segment list.

Parameters:

iterable – Initial list of time segments.

Methods

discretize_simulation(...[, n_eval, n_split])

Discretize the time segment list for simulation.

plot([function, ax])

Plot the pulses divided by the time segments.