DoubleAngleSimulator#
- class torchsim.simulators.DoubleAngleSimulator(*args, **kwargs)[source]#
Bases:
SimulatorExcitation at a series of flip angles, scaled by the transmit field.
What a voxel actually turns through is the nominal angle times the local transmit efficiency, so a series of angles reads that efficiency out. Two angles are enough, and where the second is twice the first their ratio gives
B1in closed form – but nothing here requires that, so any set of angles can be fitted.Examples
from torchsim.simulators import DoubleAngleSimulator sequence = DoubleAngleSimulator(flip=(60.0, 120.0)) signal = sequence.simulate(B1=(0.8, 1.0, 1.2)) print(signal.shape)
torch.Size([3, 2])
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.