pyepr.ReptimeScanSequence¶
- class pyepr.ReptimeScanSequence(*, B, freq, reptime, reptime_max, averages, shots, start=20, dim=100, **kwargs)[source]¶
Bases:
HahnEchoSequenceRepresents a reptime scan of a Hahn Echo Sequence.
A Hahn echo sequence is perfomed with the shot repetition time increasing.1
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: float
The default reptime, this is used for tuning pulses etc…
- averagesint
The number of scans.
- shotsint
The number of shots per point
- reptime_maxfloat
The maximum shot repetition time in us
- startfloat
The minimum shot repetition time in us, by default 20 us
- dimint
The number of points in the reptime axis
Examples
import pyepr as epr epr.set_waveform_precision(1) seq = epr.ReptimeScanSequence( B=12000, freq=34, reptime=1000, averages=1, shots=10, reptime_max=10000, start=20, dim=100) seq.draw()
(
Source code,png)
Attributes
- name = 'ReptimeScan'¶
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()[source]¶
Simulates the reptime scan as an exponential recovery.
V(t) = 1 - e^(-t/T1)
- Returns:
- tnp.ndarray
The shot repetition time axis in us
- datanp.ndarray
The simulated complex echo intensity
Examples
import matplotlib.pyplot as plt import pyepr as epr epr.set_waveform_precision(1) seq = epr.ReptimeScanSequence( B=12000, freq=34, reptime=1000, averages=1, shots=10, reptime_max=10000, start=20, dim=100) t, data = seq.simulate() plt.plot(t, data.real) plt.xlabel(r"Shot Repetition Time ($\mu$s)") 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()