CADETProcess.dynamicEvents.MultiTimeLine#

class CADETProcess.dynamicEvents.MultiTimeLine(base_state: list, is_polynomial: bool = False)[source]#

Bases: object

Class for a collection of TimeLines with the same number of entries.

Attributes:
base_statenp.ndarray

The base state that each TimeLine represents.

n_entriesint

int: Number of entries handled by MultiTimeline.

time_lineslist of TimeLine

The collection of TimeLines.

degreeint

int: The degree of the polynomials in each section.

add_section(section: Section, entry_index: tuple) None[source]#

Add section to TimeLine with specific entry index.

Parameters:
sectionSection

Section to be added.

entry_indextuple

Index of the entry in the base_state for which the section will be added.

Raises:
ValueError

If entry index is out of bounds for base_state.

property combined_time_line: TimeLine#

TimeLine: Object representing combination of all timelines in the MultiTimeLine.

property degree: int#

int: The degree of the polynomials in each section.

property n_entries: int#

int: Number of entries handled by MultiTimeline.

property section_times: list#

list: Combined section times of all TimeLines.

property size: int#

int: Total number of internal TimeLines handled Number by MultiTimeline.