Labels.restart#
- Labels.restart()[source]#
Write every label’s next value as a SET, regardless of what was written before.
An interpreter repeating the scan plays
ONCEblocks only once, so a value set inside them, or counted from one set there, is not there on the repeats. Calling the instance restarts at everyONCEit writes; call this where a module writesONCEitself.Examples
>>> from pypulseqpp import sequences >>> labels = sequences.Labels() >>> [e.type for e in labels(LIN=3)], [e.type for e in labels(LIN=3)] (['labelset'], []) >>> labels.restart() >>> [e.type for e in labels(LIN=3)] ['labelset']