SpinEchoSimulator#
- class blochsim.simulators.SpinEchoSimulator[source]#
Bases:
SimulatorSpin echo with partial longitudinal recovery, in closed form.
A 90-180 spin echo repeated every
TR, optionally behind an inversion. The refocusing pulse atTE / 2inverts the magnetization recovered since the excitation, so the next excitation finds1 - 2 exp(-(TR - TE / 2) / T1) + exp(-TR / T1)of equilibrium [1], and the echo decays with T2. An inversion time multiplies this by1 - (1 + inv_efficiency) exp(-TI / T1). The signal is one real sample per echo time.- Parameters:
- Tissue properties:
T1, T2 (float or array-like) – Longitudinal and transverse relaxation times, 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. Read only when
TIis given.
References
Examples
from blochsim.simulators import SpinEchoSimulator sequence = SpinEchoSimulator(TE=(10.0, 30.0, 60.0, 100.0), TR=2000.0) signal = sequence.simulate(T1=1000.0, T2=(50.0, 100.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.