CADETProcess.dynamicEvents.TimeLine.from_constant

CADETProcess.dynamicEvents.TimeLine.from_constant#

classmethod TimeLine.from_constant(start, end, value)[source]#

Create a timeline with a constant value for a given time range.

Parameters:
startfloat

The start time of the time range.

endfloat

The end time of the time range.

valuefloat

The value of the timeline during the time range.

Returns:
TimeLine

A TimeLine instance with a single section with the specified constant value.