MOLLISimulator

MOLLISimulator#

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

Bases: Simulator

Look-Locker readout blocks separated by free recovery, after one inversion.

Modified Look-Locker inversion recovery [1] reads the recovery in blocks, one per heartbeat. The first block starts from the inversion; between blocks the pulses stop, and the longitudinal magnetization the last readout of a block recorded recovers towards M0 for recovery milliseconds before the next block starts from it.

References

Examples

from torchsim.simulators import MOLLISimulator

sequence = MOLLISimulator(flip=35.0, TR=2.5, readouts=(40, 40, 40), recovery=800.0)
signal = sequence.simulate(T1=(800.0, 1400.0))
print(signal.shape)
torch.Size([2, 120])

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.