split_ptx_pulse

split_ptx_pulse#

pypulseqpp.split_ptx_pulse()[source]#

Return a pulse’s waveforms, one row per transmit channel, in Hz.

The channel count is the number of samples at the pulse’s first sample time, as the reference interpreter reads it; a single-channel pulse comes back as one row.

Parameters:

rf (object) – A dynamic pTx RF event, as make_ptx_pulse() writes it.

Returns:

Shape (channels, samples) complex waveforms in Hz.

Return type:

numpy.ndarray

Raises:

ValueError – If the time shape is not one time base repeated once per channel. The native checks instead treat such a pulse as a single channel.