InversionRecoverySimulator#
- class torchsim.simulators.InversionRecoverySimulator(*args, **kwargs)[source]#
Bases:
SimulatorLongitudinal recovery from an inversion, read at a series of delays.
A spin echo long enough after the inversion samples the longitudinal magnetization alone, so the contrast is the recovery curve itself. The repetition time bounds how much the magnetization has recovered by the time the next inversion arrives; leave it out for a fully relaxed one.
offsetis a constant added to the recovery, which is what a magnitude reconstruction’s noise floor looks like to a fit and what stops the fitted T1 absorbing it.Examples
from torchsim.simulators import InversionRecoverySimulator sequence = InversionRecoverySimulator(TI=(50.0, 400.0, 1100.0, 2500.0)) signal = sequence.simulate(T1=(800.0, 1400.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.