MultiEchoSimulator#

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

Bases: Simulator

Transverse decay, read at a series of echo times.

A multi-echo spin echo decays with T2 and a multi-echo gradient echo with T2*; which one is being measured is a property of the sequence that produced the data, and the model is the same exponential either way.

Examples

from torchsim.simulators import MultiEchoSimulator

sequence = MultiEchoSimulator(TE=(10.0, 20.0, 40.0, 80.0))
signal = sequence.simulate(T2=(40.0, 90.0))
print(signal.shape)
torch.Size([2, 4])

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.