LorentzianSimulator#
- class blochsim.simulators.LorentzianSimulator[source]#
Bases:
SimulatorZ-spectrum (CEST) as equilibrium minus one Lorentzian line per pool.
Each pool saturates the water signal along a Lorentzian line centred on its own offset [1], and the lines add:
M0 (1 - sum_i A_i (W_i / 2)^2 / ((W_i / 2)^2 + (offset - shift_i)^2))The signal is real, the water magnetization relative to
M0at each saturation offset; no Bloch-McConnell evolution is run (seeCESTSimulatorfor that).- Parameters:
- Tissue properties:
M0 (float or array-like, default=1.0) – Water signal off saturation.
pool1_amplitude, pool2_amplitude, … (float or array-like) – Depth of each line, as a fraction of
M0. There is one of each property below per pool, numbered from one.pool1_width, pool2_width, … (float or array-like) – Full width at half maximum of each line, in the unit of
offsets.pool1_shift, pool2_shift, … (float or array-like) – Centre of each line, in the unit of
offsets.
References
Examples
import torch from blochsim.simulators import LorentzianSimulator sequence = LorentzianSimulator(2, offsets=torch.linspace(-5.0, 5.0, 41)) signal = sequence.simulate( pool1_amplitude=0.9, pool1_width=1.5, pool1_shift=0.0, pool2_amplitude=0.1, pool2_width=2.0, pool2_shift=3.5, ) print(signal.shape)
torch.Size([41])
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.