Labels.restart

Contents

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 ONCE blocks 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 every ONCE it writes; call this where a module writes ONCE itself.

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']