Sequence.get_definition

Sequence.get_definition#

Sequence.get_definition()[source]#

Return the value recorded for key, or '' when it is not defined.

Parameters:

key (str) – The definition’s name.

Returns:

The recorded value, or '' when key is not defined.

Return type:

str | float | list[float]

Examples

>>> import pypulseqpp as pp
>>> seq = pp.Sequence()
>>> seq.set_definition("FOV", [0.25, 0.25, 0.005])
>>> seq.get_definition("FOV"), seq.get_definition("Name")
([0.25, 0.25, 0.005], '')