make_rf_shim

Contents

make_rf_shim#

pypulseqpp.make_rf_shim()[source]#

Construct an RF shim extension event.

The weights multiply the block’s RF waveform per transmit channel.

Parameters:

shim_vector (array_like) – Complex weight of each transmit channel (dimensionless).

Returns:

Event with type == 'rf_shim' and shim_vector as complex128.

Return type:

types.SimpleNamespace

Examples

>>> import numpy as np
>>> import pypulseqpp as pp
>>> event = pp.make_rf_shim([1.0, 1j, -1.0, -1j])
>>> event.type, event.shim_vector.dtype
('rf_shim', dtype('complex128'))

Played in the block of the RF event it weights:

seq.add_block(pulse.rf, pp.make_rf_shim(weights))