MPnRAGESimulator#
- class torchsim.simulators.MPnRAGESimulator(*args, **kwargs)[source]#
Bases:
SimulatorAn inversion followed by a spoiled gradient-echo train, every shot read.
Examples
from torchsim.simulators import MPnRAGESimulator sequence = MPnRAGESimulator(nshots=128, flip=5.0, TR=10.0) signal = sequence.simulate(T1=1000.0, inv_efficiency=0.95)
Methods
bindThis simulator with more fixed on it, values or settings alike.
describeReturn the description this protocol plays.
Return the train the inversion recovers through.
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 prepared train, every shot acquired.
playedReturn the protocol as it will be laid out.
repetition_sReturn how long one repetition lasts, given what the layout played.
simulateReturn the recorded signal.
- layout(*, nshots, flip, TR, TI=0.0, phases=0.0)[source]#
Return the prepared train, every shot acquired.
- Parameters:
nshots (int) – Readouts per inversion block.
flip (float or array-like) – Excitation flip angle in degrees, scalar or one per shot.
TR (float or array-like) – Repetition time in milliseconds.
TI (float or array-like, optional) – Inversion time in milliseconds.
phases (float or array-like, optional) – Excitation phases in degrees.