CADETProcess.dynamicEvents.Event.add_dependency#
- Event.add_dependency(dependency: Event, factor: float = 1, transform: Callable | None = None) None[source]#
Add a time dependency on another event.
When an event is dependent, the time of the event is based on a linear combination of its dependencies.
- Parameters:
- dependencyEvent
Event that this event depends on.
- factorfloat, default=1
Weighting factor for the dependency.
- transformcallable, optional
A function to transform the dependent event’s time.
- Raises:
- CADETProcessError
If the dependency is already listed.