make_phase_cycling_schedule#
- pypulseqpp.make_phase_cycling_schedule()[source]#
Repeat a phase cycle, reducing each entry modulo 2*pi.
- Parameters:
- Returns:
Phases (rad) in
[0, 2 pi), lengthlength.- Return type:
- Raises:
ValueError – If
lengthis negative, orphasesis not a non-empty one-dimensional finite sequence.
Examples
>>> import numpy as np >>> import pypulseqpp as pp >>> np.rad2deg(pp.make_phase_cycling_schedule(5)) array([ 0., 180., 0., 180., 0.]) >>> np.rad2deg(pp.make_phase_cycling_schedule(4, (0.0, np.pi / 2))) array([ 0., 90., 0., 90.])
See also
make_rf_spoiling_schedulefor spoiled, non-steady-state sequences.