MultiEchoSimulator#
- class torchsim.simulators.MultiEchoSimulator(*args, **kwargs)[source]#
Bases:
SimulatorTransverse 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
bindThis simulator with more fixed on it, values or settings alike.
describeReturn the description this protocol plays.
Evaluate the closed form, no state machine and no description.
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.layoutReturn the operators of one repetition, in the order they play.
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.