timed_instructions

This module contains the implementation of timed instructions.

Functions

convert_to_change_arrays(sequence)

Convert a sequence to arrays of change times and values.

with_name(instruction, name)

Change the dtype of the instruction into a structured array with a single field with the given name and the same dtype as the original instruction.

stack_instructions(*instructions)

Stack several instructions along their dtype names.

merge_instructions(**instructions)

Merge several instructions by name.

concatenate(*instructions)

Concatenates the given instructions into a single instruction.

create_ramp(start, stop, length)

Create a linear ramp between two values.

plot_instruction(instruction[, ax])

Plot the instruction on the given axis.

to_graph(instruction)

Convert a sequencer instruction to a graphiz graph for visualization.

Classes

TimedInstruction()

An immutable representation of instructions to output on a sequencer.

Concatenated(*instructions)

Represents an immutable concatenation of instructions.

Repeated(repetitions, instruction)

Represents a repetition of an instruction.

Pattern(pattern[, dtype])

An instruction representing a sequence of values.

Ramp(*args, **kwargs)

Represents an instruction that linearly ramps between two values.