SequenceApp.labels

SequenceApp.labels#

SequenceApp.labels()[source]#

Return the label events that set each label to its new value.

Label state is sticky in Pulseq, so an unchanged value writes nothing. A change equal to the label’s previous change is an INC, which a scan repeats as one event; any other change is a SET. A change of ONCE calls restart_labels() first, so every label passed with it is written again as a SET.

Parameters:

**values (int) – The new value of each label, by its Pulseq name.

Returns:

The label events to add to the block, empty when nothing changed.

Return type:

list