to_time_bounds

caqtus.shot_compilation.timing.to_time_bounds(
durations: Iterable[float],
) Sequence[Time]

Converts an iterable of durations to an iterable of Time objects.

Parameters:

durations – An iterable of durations in seconds.

Returns:

An iterable of Time objects representing the durations in seconds.