HyperechoSimulator#
- class blochsim.simulators.HyperechoSimulator[source]#
Bases:
FSESimulatorHyperecho train: refocusing pulses mirrored about a central pulse.
The pulses after the central one replay those before it in reverse order, each with flip angle
-alphaabout phase-phi(alphaat180 - phidegrees), so the last echo is the hyperecho [1]: apart from relaxation, the full spin echo of the excitation. Every echo is demodulated at zero phase, the axis of the central pulse. The signal is one complex sample per echo,2 n + 1fornflip angles.- Parameters:
flip (float or array-like) – Flip angles of the refocusing pulses before the central one, in degrees, one per echo.
ESP (float or array-like) – Echo spacing, in ms.
phases (float or array-like, default=0.0) – Phases of the refocusing pulses before the central one, in degrees.
refocusing (float, default=180.0) – Flip angle of the central pulse, in degrees, played at zero phase.
exc_flip (float, default=90.0) – Excitation flip angle, in degrees.
exc_phase (float, default=90.0) – Excitation phase, in degrees.
TR (float or array-like, default=1e6) – Repetition time, in ms.
states (int, default=None) – Configuration states kept. When not given, sized from the whole winding, since the hyperecho is brought back from the highest order the first half reached.
repetitions (int or "auto", default=2) – Playings of the train; the last is the signal.
- Tissue properties:
T1, T2 (float or array-like) – Relaxation times, in ms.
M0 (float or array-like, default=1.0) – Equilibrium magnetization.
B1 (float or array-like, default=1.0) – Transmit field, as a fraction of the nominal flip angle.
Notes
With one flip angle at zero phase throughout, this is the sequence BART’s
epgplays as Hyperecho.References
Examples
import torch from blochsim.simulators import HyperechoSimulator sequence = HyperechoSimulator(flip=60.0 * torch.ones(5), ESP=10.0) signal = sequence.simulate(T1=1000.0, T2=80.0) print(signal.shape)
torch.Size([11])
Methods
bindReturn a copy with further arguments fixed.
describeReturn the
SequenceDescriptionof a protocol.evaluateReturn the signal at every echo.
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.
Return the train, placed at the echo times it is timed from.
playedReturn the protocol arguments of
layout(), arrays as torch tensors.repetition_sReturn
TRin seconds, 1e6 ms when not given.simulateReturn the recorded signal.
- states = None#