MultiEchoSimulator#
- class blochsim.simulators.MultiEchoSimulator[source]#
Bases:
SimulatorMulti-echo T2 relaxometry, in closed form.
Monoexponential transverse decay
M0 exp(-TE / T2) + offset, one real sample per echo time. The propertyT2is T2 for a spin-echo train and T2* for a gradient-echo train.- Parameters:
TE (float or array-like) – Echo times, in ms; the trailing axis of the signal.
- Tissue properties:
T2 (float or array-like) – Transverse relaxation time, in ms.
M0 (float or array-like, default=1.0) – Equilibrium magnetization.
offset (float or array-like, default=0.0) – Constant added to the decay, such as a magnitude noise floor.
Examples
from blochsim.simulators import MultiEchoSimulator sequence = MultiEchoSimulator(TE=(10.0, 20.0, 40.0, 80.0)) signal = sequence.simulate(T2=(40.0, 90.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.