InversionRecoverySimulator#

class blochsim.simulators.InversionRecoverySimulator[source]#

Bases: Simulator

Inversion-recovery T1 relaxometry, in closed form.

An inversion, a delay TI and a readout of the longitudinal magnetization, repeated every TR. The signal is M0 (1 - (1 + inv_efficiency (1 - exp(-(TR - TI) / T1))) exp(-TI / T1)) + offset, one real sample per inversion time; with TR omitted the magnetization is fully relaxed at each inversion and the bracket reduces to 1 - (1 + inv_efficiency) exp(-TI / T1). The excitation leaves nothing longitudinal behind.

Parameters:
  • TI (float or array-like) – Inversion times, in ms; the trailing axis of the signal.

  • TR (float or array-like, default=None) – Repetition time, in ms. Fully relaxed at each inversion when not given.

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

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

  • inv_efficiency (float or array-like, default=1.0) – Fraction of a perfect inversion.

  • offset (float or array-like, default=0.0) – Constant added to the recovery, such as a magnitude noise floor.

Examples

from blochsim.simulators import InversionRecoverySimulator

sequence = InversionRecoverySimulator(TI=(50.0, 400.0, 1100.0, 2500.0))
signal = sequence.simulate(T1=(800.0, 1400.0))
print(signal.shape)
torch.Size([2, 4])

Methods

bind

Return a copy with further arguments fixed.

describe

Return the SequenceDescription of a protocol.

evaluate

Return the closed-form signal.

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 operators of one repetition in playing order.

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.

evaluate()[source]#

Return the closed-form signal.