busse_flips#
- blochsim.trains.busse_flips()[source]#
Variable refocusing flip angles of a long echo train, after Busse.
The echo signal is prescribed without relaxation: an opening transient from the first echo, a rise through the centre echo, and a linear rise to the last one, each level the pseudo-steady-state amplitude of a flip angle [1] [2].
prescribed_flips()inverts it, and the three levels are found by shooting so that the angles played are the ones asked for: the lowest before the centre ismin_flip, the centre echo’s iscentre_flip, and the first and the last aremax_flip.Every argument may be an array; they broadcast, and each element is a train of its own. The trains are solved together.
- Parameters:
length (int or array-like) – Refocusing pulses of the train, startup pulses included.
min_flip (float or array-like, default=25.0) – Lowest flip angle before the centre echo, in degrees.
centre_flip (float or array-like, default=70.0) – Flip angle at the centre echo, in degrees.
max_flip (float or array-like, default=120.0) – Flip angle of the first and the last pulse, in degrees.
centre_echo (int or array-like, default=None) – Zero-based index of the pulse whose echo samples the centre of k-space, startup pulses included. By default the middle of what follows the startup pulses,
startup_echoes + (length - startup_echoes - 1) // 2.startup_echoes (int or array-like, default=6) – Leading pulses whose echoes are not acquired; they only place the default centre echo.
initial_decay (float or array-like, default=1.3) – Time constant of the opening transient, in echoes.
threads (int, default=0) – Threads to spread the trains over; 0 sizes the pool to the batch.
jacobian (bool, default=False) – Also return the derivatives of the flip angles with respect to
min_flip,centre_flipandmax_flip.
- Returns:
flip (numpy.ndarray) – Flip angles in degrees: shape
(length,)for one train, and(..., max(length))for a batch, zero past each train’s last pulse.jacobian (numpy.ndarray) – Only with
jacobian: shape(..., max(length), 3), in degrees per degree ofmin_flip,centre_flipandmax_flip. It is exact, carried through the inversion with the angles, and holds where the lowest angle stays at the same echo.
- Raises:
ValueError – If a count or an angle is not valid, a centre echo is not after the sixth pulse and before the last, or no train meets a prescription.
Notes
The rise to the centre follows a power of 1.5 and the one after it is linear [2]. The flip angles do not depend on the echo spacing; what relaxation makes of them is
effective_te()’s and the simulators’.References
Examples
>>> import numpy as np >>> from blochsim.trains import busse_flips >>> flip = busse_flips(106) >>> bool(np.allclose([flip[1:55].min(), flip[55], flip[-1]], [25, 70, 120])) True