MPnRAGESimulator

MPnRAGESimulator#

class blochsim.simulators.MPnRAGESimulator[source]#

Bases: Simulator

MPnRAGE: an inversion and a spoiled gradient-echo train, every shot read.

One inversion, then nshots spoiled gradient-echo readouts, each sampled at the pulse. The signal is one complex sample per shot, along the inversion-recovery curve.

Parameters:
  • nshots (int) – Readouts per inversion block.

  • flip (float or 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.

  • TI (float or array-like, default=0.0) – Delay from the inversion to the first excitation, in ms.

  • phases (float or array-like, default=0.0) – Excitation phases, in degrees; scalar or one per shot.

  • states (int, default=1) – Configuration states; only the longitudinal state is carried.

Tissue properties:
  • T1 (float or array-like) – Longitudinal relaxation time, in ms.

  • M0 (float or array-like, default=1.0) – Equilibrium magnetization.

  • 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) – Fraction of a perfect inversion.

Examples

from blochsim.simulators import MPnRAGESimulator

sequence = MPnRAGESimulator(nshots=128, flip=5.0, TR=10.0)
signal = sequence.simulate(T1=1000.0, inv_efficiency=0.95)

Methods

bind

Return a copy with further arguments fixed.

describe

Return the SequenceDescription of a protocol.

evaluate

Return the signal of one simulation of the protocol.

from_description

Return a simulator that plays an existing description.

from_pulseq

Return a simulator over one repetition of a Pulseq sequence.

jacobian

Return the signal and its derivative with respect to tissue properties.

layout

Return the inversion and the train of excitations and readouts.

played

Return the protocol arguments of layout(), arrays as torch tensors.

repetition_s

Return the duration of one repetition in seconds.

simulate

Return the recorded signal.

layout()[source]#

Return the inversion and the train of excitations and readouts.

Raises:

ValueError – If nshots is not positive, or flip is neither scalar nor one per shot.