InversionRecoverySimulator#
- class blochsim.simulators.InversionRecoverySimulator[source]#
Bases:
SimulatorInversion-recovery T1 relaxometry, in closed form.
An inversion, a delay
TIand a readout of the longitudinal magnetization, repeated everyTR. The signal isM0 (1 - (1 + inv_efficiency (1 - exp(-(TR - TI) / T1))) exp(-TI / T1)) + offset, one real sample per inversion time; withTRomitted the magnetization is fully relaxed at each inversion and the bracket reduces to1 - (1 + inv_efficiency) exp(-TI / T1). The excitation leaves nothing longitudinal behind.- Parameters:
- 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
bindReturn a copy with further arguments fixed.
describeReturn the
SequenceDescriptionof a protocol.Return the closed-form signal.
from_descriptionReturn a simulator that plays an existing description.
from_pulseqReturn a simulator over one repetition of a Pulseq sequence.
jacobianReturn the signal and its derivative with respect to tissue properties.
layoutReturn the operators of one repetition in playing order.
playedReturn the protocol arguments of
layout(), arrays as torch tensors.repetition_sReturn the duration of one repetition in seconds.
simulateReturn the recorded signal.