pyepr.HahnEchoSequence¶
- class pyepr.HahnEchoSequence(*, B, freq, reptime, averages, shots, **kwargs)[source]¶
Bases:
SequenceRepresents a Hahn-Echo sequence.
Build a Hahn-Echo sequence using either rectangular pulses or specified pulses. By default no progression is added to this sequence.
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
Examples
import pyepr as epr import numpy as np epr.set_waveform_precision(1) seq = epr.HahnEchoSequence( B=12000, freq=34, reptime=1e3, averages=1, shots=10, tau=500) seq.draw()
(
Source code,png)
Attributes
Inherited from
Sequence:time,pcyc_vars,pcyc_cycles,pcyc_dets,pulses,averages,shots,name,progTable,evo_params,num_pulses,seqtable_steps,shapeMethods
- simulate(Tm=1000.0)[source]¶
Simulates the Hahn echo intensity as a stretched exponential decay of the interpulse delay, with a stretching exponent of 1.6.
V(\tau) = e^{-(\tau/T_m)^{1.6}}
- Parameters:
- Tmfloat
The phase memory time in ns, by default 1e3 ns
- Returns:
- xaxisnp.ndarray
The interpulse delay in ns (a single point)
- datanp.ndarray
The simulated complex echo intensity (a single point)
Examples
import pyepr as epr seq = epr.HahnEchoSequence( B=12000, freq=34, reptime=1e3, averages=1, shots=10, tau=500) tau, data = seq.simulate(Tm=1e3) print(tau, data)
Inherited from
Sequence:plot(),plot_pulse_exc(),draw(),addPulse(),evolution(),adjust_step(),shift_detfreq_to_zero(),copy(),save(),load()