Sequence.rf_channels

Sequence.rf_channels#

Sequence.rf_channels()[source]#

Return the transmit channels each RF event of the library holds.

Entry i is RF id i + 1. A dynamic pTx pulse holds its channels one after another over one time base, and the count is the number of samples at its first sample time when the times are that many identical copies, as the reference interpreter reads it; any other pulse holds one.

Examples

>>> import numpy as np
>>> import pypulseqpp as pp
>>> seq = pp.Sequence(pp.Opts())
>>> _ = seq.add_block(pp.make_ptx_pulse(100.0 * np.ones((2, 100))))
>>> _ = seq.add_block(pp.make_block_pulse(np.pi / 2, duration=1e-3))
>>> seq.rf_channels().tolist()
[2, 1]