pyepr.sequences.HahnEchoRelaxationSequence¶
- class pyepr.sequences.HahnEchoRelaxationSequence(*, B, freq, reptime, averages, shots, start=500, step=40, dim=200, **kwargs)[source]¶
Bases:
HahnEchoSequenceRepresents a Hahn Echo relaxation sequence for measureing Tm. A Hahn Echo where the interpulse delay increases
Build a Hahn echo relaxation sequence, where the interpulse delay is incremented, using either rectangular pulses or specified pulses.
Sequence: [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 interpulse delay in ns, by default 500 ns
- stepfloat
The step size of the interpulse 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.HahnEchoRelaxationSequence( B=12000, freq=34, reptime=1e3, averages=1, shots=10, start=300, step=40, dim=200) seq.draw()
(
Source code,png)
Attributes
- tau: pyepr.classes.Parameter¶
The incremented interpulse delay in ns.
- name = 'HahnEchoRelaxationSequence'¶
The name of this pulse sequence.
Inherited from
Sequence:time,pcyc_vars,pcyc_cycles,pcyc_dets,pulses,averages,shots,progTable,evo_params,num_pulses,seqtable_steps,shapeMethods
- simulate(ESEEM_depth=0.1, Tm=1000.0)[source]¶
Simulates the Hahn echo decay as a stretched exponential, with a stretching exponent of 1.6, modulated by proton ESEEM.
V(\tau) = e^{-(\tau/T_m)^{1.6}}
- Parameters:
- ESEEM_depthfloat
The depth of the proton ESEEM modulation, by default 0.1. Set to 0 to disable the ESEEM modulation.
- Tmfloat
The phase memory time in ns, by default 1e3 ns
- Returns:
- xaxisnp.ndarray
The interpulse 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.HahnEchoRelaxationSequence( B=12000, freq=34, reptime=1e3, averages=1, shots=10, start=300, step=40, dim=200) x, data = seq.simulate(ESEEM_depth=0.1, Tm=1e3) plt.plot(x, data.real) plt.xlabel("Interpulse 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()