SPGRSimulator

SPGRSimulator#

class torchsim.simulators.SPGRSimulator(*args, **kwargs)[source]#

Bases: Simulator

The spoiled gradient-echo steady state, read at the echo time.

Spoiling leaves no transverse magnetization to carry over, so the steady state is the Ernst expression [1] in closed form and no state machine is run. Fitting T1 to a set of these at different flip angles is DESPOT1 [2].

References

Examples

from torchsim.simulators import SPGRSimulator

sequence = SPGRSimulator(flip=13.0, TR=10.0, TE=5.0)
signal = sequence.simulate(T1=1000.0, T2star=30.0)

Methods

bind

This simulator with more fixed on it, values or settings alike.

describe

Return the description this protocol plays.

evaluate

Evaluate the closed form, no state machine and no description.

from_description

Return a simulator over a stream someone else assembled.

from_pulseq

Return a simulator over one repetition of a Pulseq sequence.

jacobian

Return the signal and its derivative with respect to diff.

layout

Return the operators of one repetition, in the order they play.

played

Return the protocol as it will be laid out.

repetition_s

Return how long one repetition lasts, given what the layout played.

simulate

Return the recorded signal.

evaluate(properties, **sequence)[source]#

Evaluate the closed form, no state machine and no description.