make_rf_spoiling_schedule#
- pypulseqpp.make_rf_spoiling_schedule()[source]#
Return quadratic RF-spoiling phases in radians.
Apply each phase to both excitation and ADC offsets. With the default initial increment, the first two phases are equal.
- Parameters:
length (int) – Number of repetitions.
increment (float, default=np.deg2rad(117.0)) – Quadratic phase increment (rad); 117 degrees by default.
initial_phase (float, default=0.0) – Phase of the first repetition (rad).
initial_increment (float, default=0.0) – Linear increment at the first repetition (rad).
- Returns:
Phases (rad) in
[0, 2 pi), lengthlength.- Return type:
- Raises:
ValueError – If
lengthis negative.
Examples
>>> import numpy as np >>> import pypulseqpp as pp >>> np.rad2deg(pp.make_rf_spoiling_schedule(4)).round(1) array([ 0., 0., 117., 351.])
See also
make_phase_cycling_schedulethe balanced-SSFP alternative.