make_rf_shim#
- pypulseqpp.make_rf_shim()[source]#
Create complex per-transmit-channel weights for a block’s RF envelope.
- Parameters:
shim_vector (array_like) – Complex per-channel weights, one per transmit channel.
- Returns:
RF shim extension event (
type == 'rf_shim') with the weights stored ascomplex128.- Return type:
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'))
Attach it alongside the RF event of a block:
seq.add_block(pulse.rf, pp.make_rf_shim(weights))