MultiGradientEchoSimulator#
- class blochsim.simulators.MultiGradientEchoSimulator[source]#
Bases:
SimulatorMulti-gradient-echo signal of water and fat, in closed form.
Fat is a multi-peak spectrum [1] at fixed chemical shifts, so per voxel only the fat amount, the transverse decay and the off-resonance remain to be fitted. Water is
1 - fat_fractionof a complex scale and fatfat_fractionof it, rotated byfat_phase. OmittingT2starmeans no decay; omittingfat_T2stargives fat the waterT2star. The signal is complex, one sample per echo time.- Parameters:
- Tissue properties:
T2star (float or array-like, default=None) – Transverse relaxation time of water, in ms; no decay when not given.
fat_T2star (float or array-like, default=None) – Transverse relaxation time of fat, in ms;
T2starwhen not given.M0 (float or array-like, default=1.0) – Complex scale of water plus fat.
B0 (float or array-like, default=0.0) – Off-resonance, in Hz.
fat_fraction (float or array-like, default=0.0) – Fat as a fraction of the signal at zero echo time.
fat_phase (float or array-like, default=0.0) – Phase of fat relative to water, in degrees.
References
Examples
from blochsim.simulators import MultiGradientEchoSimulator sequence = MultiGradientEchoSimulator(TE=(1.2, 2.4, 3.6, 4.8, 6.0, 7.2)) signal = sequence.simulate(fat_fraction=(0.0, 0.2), T2star=30.0, B0=15.0) print(signal.shape)
torch.Size([2, 6])
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.