pyepr.sequences.base_sequences.FieldSweepSequence

class pyepr.sequences.base_sequences.FieldSweepSequence(*, B, freq, Bwidth, reptime, averages, shots, **kwargs)[source]

Bases: HahnEchoSequence

Represents 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)

../../../../_images/FieldSweepSequence-12.png

Attributes

name = 'FieldSweepSequence'[source]

The name of this pulse sequence.

B: pyepr.classes.Parameter[source]

The swept B0 field in Gauss, centred on the given field.

Methods

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)

../../../../_images/FieldSweepSequence-22.png