make_label#
- pypulseqpp.make_label()[source]#
Create a label event.
- Parameters:
- Returns:
The event, with its fields in slots.
- Return type:
LabelEvent
- Raises:
ValueError – If
typeis neither'SET'nor'INC'. The name is not checked, which is the point.
Examples
>>> import pypulseqpp as pp >>> event = pp.make_label("LIN", "SET", 12) >>> event.type, event.label, event.value ('labelset', 'LIN', 12)
A name Pulseq does not define is accepted and is carried by name:
>>> pp.make_label("SPARKLE", "INC", 1).label 'SPARKLE'