MPnRAGESimulator#

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

Bases: Simulator

An 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

bind

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

describe

Return the description this protocol plays.

evaluate

Return the train the inversion recovers through.

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 prepared train, every shot acquired.

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.

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.

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

Return the train the inversion recovers through.