compile_analog_lane

caqtus.shot_compilation.lane_compilation.compile_analog_lane(
lane: AnalogTimeLane,
variables: Parameters,
step_start_times: Sequence[Time],
time_step: Time,
) DimensionedSeries[float64]

Compile the lane to a sequencer instruction.

This function discretizes the lane time and evaluates the expressions and ramps in the lane for each tick.

Parameters:
  • lane – The lane to compile.

  • variables – The values of the variables to use when evaluating the expressions in the lane.

  • step_start_times – The start times in seconds of each step. This must have one more element than the number of steps in the lane, with the last element being the total duration of the shot.

  • time_step – The time step in seconds to use for the discretization.

Returns:

The computed instruction for the lane. This contains an instruction with the values for each tick, and the unit in which they are expressed.