cutcutcodec.core.analysis.stream.time_backprop.time_backprop

cutcutcodec.core.analysis.stream.time_backprop.time_backprop(stream: Stream, t_min: Fraction, t_max: Fraction | float) tuple[Stream, tuple[Fraction, Fraction | float]][source]

Match the time slice to the input streams of a node.

Helper for cutcutcodec.core.compilation.export.time_slice.time_backprop.

Parameters

streamcutcutcodec.core.classes.stream.Stream

One of the output stream of the node. It can be a stream of any type.

t_minFraction

The starting included time of decoding the data of the given stream.

t_maxfrctions.Fraction or inf

The final excluded time of decoding the data of the given stream.

Yields

in_streamcutcutcodec.core.classes.stream.Stream

Turn by turn, the input stream of the node given by the stream in argument. If the node is a generator, no stream are yields.

new_t_minFraction

The start time of this slice matching with the given time slice.

new_t_maxFraction or inf

The final time of this slice matching with the given time slice.