make_traps_schedule#
- pypulseqpp.make_traps_schedule()[source]#
Return a variable refocusing flip-angle schedule in radians.
variable=Falsegives a constant target angle. Otherwise the first refocusing angle is raised above the target, approximatelypi / 2 + target / 2as proposed for pseudo-steady-state stabilisation [1], and the following angles decay towards the target by a factor of two per echo. Flip-angle trains that vary smoothly along the echo train are the subject of TRAPS [2]; this routine implements only the initial stabilising transition.- Parameters:
- Returns:
Refocusing flip angles (rad), length
length, approachingtarget_flip_angle.- Return type:
- Raises:
ValueError – If
lengthis negative, or a flip angle is outside the range a refocusing train can use.
Examples
>>> import numpy as np >>> import pypulseqpp as pp >>> flips = pp.make_traps_schedule(8, np.deg2rad(120)) >>> np.rad2deg(flips)[[0, -1]].round(1) array([153. , 120.2])
References