pyepr.sequences.base_sequences.T1InversionRecoverySequence¶
- class pyepr.sequences.base_sequences.T1InversionRecoverySequence(*, B, freq, reptime, averages, shots, start=500, step=40, dim=200, **kwargs)[source]¶
Bases:
SequenceRepresents a T1 Inversion Recovery Sequence.
Build a T1 inversion recovery sequence using either rectangular pulses or specified pulses.
Sequence: [pi - t - pi/2 - tau - pi - tau - echo]
- Parameters:
- Bint or float
The B0 field, in Gauss
- freqint or float
The freq frequency in GHz
- reptime_type_
The shot repetition time in us
- averagesint
The number of scans.
- shotsint
The number of shots per point
- startfloat
The minimum inversion recovery delay in ns, by default 500 ns
- stepfloat
The step size of the inversion recovery delay in ns, by default 40 ns
- dimint
The number of points in the X axis, by default 200
Examples
import pyepr as epr epr.set_waveform_precision(1) seq = epr.T1InversionRecoverySequence( B=12000, freq=34, reptime=1e3, averages=1, shots=10, start=10000, step=2500, dim=500) seq.draw()
(
Source code,png)
Attributes
- tau: pyepr.classes.Parameter[source]¶
The Hahn echo interpulse delay in ns.
- t: pyepr.classes.Parameter[source]¶
The inversion recovery delay in ns.
Inherited from
Sequence:time,pcyc_vars,pcyc_cycles,pcyc_dets,pulses,averages,shots,name,progTable,evo_params,num_pulses,seqtable_steps,shapeMethods
- simulate(T1=10000.0)[source]¶
Simulates the T1 recovery as a simple exponential recovery.
V(t) = 1 - 2e^{-t/T_1}
- Parameters:
- T1float
The longitudinal relaxation time in ns, by default 1e4 ns
- Returns:
- xaxisnp.ndarray
The inversion recovery delay in ns
- datanp.ndarray
The simulated complex echo intensity
Examples
import matplotlib.pyplot as plt import pyepr as epr epr.set_waveform_precision(1) seq = epr.T1InversionRecoverySequence( B=12000, freq=34, reptime=1e3, averages=1, shots=10, start=500, step=500, dim=100) x, data = seq.simulate(T1=1e4) plt.plot(x, data.real) plt.xlabel("Inversion Recovery Delay (ns)") plt.ylabel("Signal Intensity (a.u.)")
(
Source code,png)
Inherited from
Sequence:plot(),plot_pulse_exc(),draw(),addPulse(),evolution(),adjust_step(),shift_detfreq_to_zero(),copy(),save(),load()