mpnrage_sim#
- blochsim.mpnrage_sim()[source]#
Simulate an MPnRAGE train, every shot read.
Magnetization-prepared spoiled gradient-echo train, one inversion followed by
nshotsreadouts, each sampled; the signal follows the longitudinal recovery after the inversion. WrapsMPnRAGESimulator.- Parameters:
nshots (int) – Readouts per inversion block.
flip (array-like) – Excitation flip angle, in degrees; scalar, or one per shot.
TR (float or array-like) – Repetition time, in ms; scalar or one per shot.
T1 (float or array-like) – Longitudinal relaxation time, in ms.
diff (str or tuple of str, default=None) – Names of the properties to differentiate with respect to.
Nonereturns the signal alone.B1 (float or array-like, default=1.0) – Transmit field, as a fraction of the nominal flip angle.
inv_efficiency (float or array-like, default=1.0) – Inversion efficiency, as a fraction of a perfect inversion.
M0 (float or array-like, default=1.0) – Equilibrium magnetization.
TI (float, default=0.0) – Delay from the inversion to the first excitation, in ms.
phases (float or array-like, default=0.0) – Excitation RF phases, in degrees; scalar or one per shot.
device (str or torch.device, default=None) – Device to run on.
Nonefollows the inputs.**values – Any further property or protocol argument of the simulator, such as
B0orB1, passed tosimulate(). Arguments given asNoneare dropped.
- Returns:
signal (complex array-like) – Signal of shape
(..., nshots), where...is the broadcast shape of the tissue properties.jacobian (same array type as
signal) – Derivatives of the signal with respect todiff, of shape(..., len(diff), nshots). Returned only whendiffis given; a single name omits thelen(diff)axis.
- Raises:
ValueError – If
nshotsis not positive, orflipis neither scalar nor of lengthnshots.