pyepr.sequences.HahnEchoRelaxationSequence

class pyepr.sequences.HahnEchoRelaxationSequence(*, B, freq, reptime, averages, shots, start=500, step=40, dim=200, **kwargs)[source]

Bases: HahnEchoSequence

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

../../../_images/HahnEchoRelaxationSequence-11.png

Attributes

tau: pyepr.classes.Parameter

The incremented interpulse delay in ns.

name = 'HahnEchoRelaxationSequence'

The name of this pulse sequence.

Methods

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)

../../../_images/HahnEchoRelaxationSequence-21.png