DoubleAngleSimulator#
- class blochsim.simulators.DoubleAngleSimulator[source]#
Bases:
SimulatorDouble-angle B1 mapping, in closed form.
A single excitation at each nominal flip angle, read at full relaxation. A voxel turns through the nominal angle times
B1, so the signal isM0 sin(B1 flip), one real sample per angle. Two angles in the ratio of two giveB1in closed form; any set of angles can be fitted.- Parameters:
flip (float or array-like) – Nominal flip angles, in degrees; the trailing axis of the signal.
- Tissue properties:
B1 (float or array-like) – Transmit field, as a fraction of the nominal flip angle.
M0 (float or array-like, default=1.0) – Equilibrium magnetization.
Examples
from blochsim.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
bindReturn a copy with further arguments fixed.
describeReturn the
SequenceDescriptionof a protocol.Return the closed-form signal.
from_descriptionReturn a simulator that plays an existing description.
from_pulseqReturn a simulator over one repetition of a Pulseq sequence.
jacobianReturn the signal and its derivative with respect to tissue properties.
layoutReturn the operators of one repetition in playing order.
playedReturn the protocol arguments of
layout(), arrays as torch tensors.repetition_sReturn the duration of one repetition in seconds.
simulateReturn the recorded signal.