FSESimulator#
- class torchsim.simulators.FSESimulator(*args, **kwargs)[source]#
Bases:
SimulatorA refocused echo train, sampled at every echo.
Examples
import torch from torchsim.simulators import FSESimulator sequence = FSESimulator(flip=180.0 * torch.ones(128), ESP=2.0, TR=5000.0) signal = sequence.simulate(T1=1000.0, T2=80.0)
Methods
bindThis simulator with more fixed on it, values or settings alike.
describeReturn the description this protocol plays.
Simulate one train, then let it recover for what is left of the TR.
from_descriptionReturn a simulator over a stream someone else assembled.
from_pulseqReturn a simulator over one repetition of a Pulseq sequence.
jacobianReturn the signal and its derivative with respect to
diff.Return the train, placed at the echo times it is timed from.
playedReturn the protocol as it will be laid out.
Return the TR, which the train waits out before the next one.
simulateReturn the recorded signal.
- layout(*, flip, ESP, phases=0.0, exc_flip=90.0, exc_phase=90.0, TR=1e6)[source]#
Return the train, placed at the echo times it is timed from.
- Parameters:
flip (float or array-like) – Refocusing flip angles in degrees, one per echo.
ESP (float or array-like) – Echo spacing in milliseconds.
phases (float or array-like, optional) – Refocusing phases in degrees.
exc_flip (float, optional) – The excitation, in degrees.
exc_phase (float, optional) – The excitation, in degrees.
TR (float or array-like, optional) – Repetition time in milliseconds, which sets how far the longitudinal magnetization recovers before the next train.