pyepr.sequences.base_sequences.FieldSweepSequence¶
- class pyepr.sequences.base_sequences.FieldSweepSequence(*, B, freq, Bwidth, reptime, averages, shots, **kwargs)[source]¶
Bases:
HahnEchoSequenceRepresents a Field Sweep (EDFS) sequence.
Build a Field Sweep (EDFS) sequence using either rectangular pulses or specified pulses.
Sequence: [pi/2 - tau - pi - tau - echo]
- Parameters:
- Bint or float
The B0 field, in Gauss
- Bwidth: int or float
The width of the field sweep, 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 epr.set_waveform_precision(1) seq = epr.FieldSweepSequence( B=12000, Bwidth=100, freq=34, reptime=1e3, averages=1, shots=10) seq.draw()
(
Source code,png)
Attributes
- B: pyepr.classes.Parameter[source]¶
The swept B0 field in Gauss, centred on the given field.
Inherited from
Sequence:time,pcyc_vars,pcyc_cycles,pcyc_dets,pulses,averages,shots,progTable,evo_params,num_pulses,seqtable_steps,shapeMethods
- simulate()[source]¶
Simulate the Field Sweep spectra as a Nitroxide radical.
- Returns:
- axisnp.ndarray
The magnetic field axis in Gauss
- datanp.ndarray
The simulated complex echo intensity
Examples
import matplotlib.pyplot as plt import pyepr as epr epr.set_waveform_precision(1) N_gyro = 0.002803632236095 freq = 34 seq = epr.FieldSweepSequence( B=freq/N_gyro, Bwidth=200, freq=freq, reptime=1e3, averages=1, shots=10) B, data = seq.simulate() plt.plot(B, data.real) plt.xlabel("Magnetic Field (G)") 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()