make_pd_target_schedule

make_pd_target_schedule#

pypulseqpp.make_pd_target_schedule()[source]#

Design a PD refocusing train by relaxation-aware inverse EPG of a target signal.

Parameters:
  • length (int) – RF count, startup pulses included; at least 2.

  • echo_spacing (float) – Echo spacing (s), positive.

  • first_echo_time (float | None, default=None) – Excitation-to-first-echo time (s). None uses echo_spacing.

  • first_flip_angle (float, default=np.deg2rad(PD_CENTRE[0])) – First refocusing angle (rad), at most maximum_flip_angle.

  • maximum_flip_angle (float, default=np.deg2rad(PD_MAXIMUM_ANGLE_DEG)) – Upper bound on every angle (rad), below pi. A pulse the target would push past it plays it, and its echo falls below the target.

  • plateau_signal (float, default=PD_CENTRE[1]) – Plateau of the target signal, over the equilibrium magnetization, in (0, 1].

  • plateau_slope (float, default=PD_CENTRE[2]) – Relative change of the plateau from the first pulse to the last.

  • plateau_fraction (float, default=PD_CENTRE[3]) – Fraction of the train, from its first pulse, before the signal tail begins, in (0, 1).

  • tail_signal (float, default=PD_CENTRE[4]) – Signal at the last pulse over the plateau there, nonnegative.

  • tail_exponent (float, default=PD_CENTRE[5]) – Power of the tail’s decline in its own fraction of the train, positive: 2 starts it with zero slope.

  • initial_signal (float, default=PD_CENTRE[6]) – Target at the second echo, in (0, 1], from which the signal decays to the plateau.

  • initial_decay (float, default=PD_CENTRE[7]) – Time constant of that decay (echoes), positive.

  • reference_t1 (float, default=1.0) – Reference T1 for inverse EPG (s), positive and finite.

  • reference_t2 (float, default=0.1) – Reference T2 for inverse EPG (s), positive and finite.

Returns:

Refocusing angles (rad), shape (length,).

Return type:

numpy.ndarray

Raises:
  • ValueError – If the count, the timing or a parameter is out of range.

  • ImportError – If blochsim, which inverts the phase graph, is not installed.

Notes

The target signal decreases from the second echo to a plateau and declines over a late tail, after the prescribed-signal design of Mugler et al. [1]. Each angle is the one in [0, maximum_flip_angle] whose echo comes nearest the target, given the train so far (blochsim.trains.prescribed_flips()). The default parameters are fitted to the central train of Fig. 1 of Buonincontri et al. [2], read off the published figure; PD_PERIPHERY holds those of its peripheral train. They are the only reference the defaults were fitted to, and this is not a numerical reconstruction of the trains of that figure.

make_pd_schedule() designs a PD train from its first, maximum and final angles instead, solving the signal levels that reach them.

EPG assumes a fully relaxed ideal 90-degree excitation and instantaneous CPMG pulses with longitudinal recovery. Finite RF profiles, actual B1 and inter-shot steady state require separate forward evaluation.

Examples

>>> import numpy as np
>>> import pypulseqpp as pp
>>> angles = np.rad2deg(
...     pp.make_pd_target_schedule(40, 0.003416, first_echo_time=0.004162)
... )
>>> bool(angles.max() <= 150.0), bool(angles[4] < angles[-1])
(True, True)

References