calc_rf_center#
- pypulseqpp.calc_rf_center()[source]#
Calculate the time point of the effective rotation calculated as the peak of the radio-frequency amplitude for the shaped pulses and the center of the pulse for the block pulses. Zero padding in the radio-frequency pulse is considered as a part of the shape. Delay field of the radio-frequency object is not taken into account.
- Parameters:
rf (SimpleNamespace) – Radio-frequency pulse event.
- Returns:
time_center (float) – Time point of the center of the radio-frequency pulse.
id_center (float) – Corresponding position of time_center in the radio-frequency pulse’s envelope.
Notes
This is PyPulseq’s function. Events go in as the namespaces it expects and come back with their fields in slots.