API doc

Classes

Main Classes

Pulse

The class for a general pulse.

Criteria

A class for defining criteria for terminating experiments. This should

Parameter

Represents a sequence or pulse parameter.

Sequence

Represents an experimental pulse sequence.

Analysis Modules

FieldSweepAnalysis

Analysis and calculation of FieldSweep Experiment.

HahnEchoRelaxationAnalysis

Analysis, fitting and plotting for the HahnEchoRelaxation Sequence.

ResonatorProfileAnalysis

Analysis and calculation of resonator profiles.

CarrPurcellAnalysis

Analysis and calculation of Carr Purcell decay.

ReptimeAnalysis

Analysis and calculation of Reptime based saturation recovery.

AmplifierLinearityAnalysis

Sequences

Setup and Calibration Sequences

HahnEchoSequence

Represents a Hahn-Echo sequence.

FieldSweepSequence

Represents a Field Sweep (EDFS) sequence.

ResonatorProfileSequence

Builds nutation based Resonator Profile sequence.

TWTProfileSequence

Builds TWT based Resonator Profile sequence.

T1InversionRecoverySequence

Represents a T1 Inversion Recovery Sequence.

Relxation Sequences

HahnEchoRelaxationSequence

Represents a Hahn Echo relaxation sequence for measureing Tm. A Hahn Echo where the interpulse delay increases

CarrPurcellSequence

Represents a Carr-Purcell sequence.

T1InversionRecoverySequence

Represents a T1 Inversion Recovery Sequence.

ReptimeScanSequence

Represents a reptime scan of a Hahn Echo Sequence.

Dipolar EPR Sequences

ThreePulseDEERSequence

Represents an experimental pulse sequence.

FourPulseDEERSequence

Represents an experimental pulse sequence.

FivePulseDEERSequence

Represents an experimental pulse sequence.

Hyperfine Spectroscopy Sequences

ThreePulseESEEMSequence

Represents an experimental pulse sequence.

HYSCORESequence

Represents an experimental pulse sequence.

Pulses

Pulse

The class for a general pulse.

Detection

Represents a detection pulse.

RectPulse

Represents a rectangular monochromatic pulse.

GaussianPulse

Represents a Gaussian monochromatic pulse.

ChirpPulse

Represents a linear frequency-swept pulse.

HSPulse

Represents a non-symetric hyperboilc secant frequency-swept pulse.

SincPulse

Represents a sinc shaped monochromatic pulse.

WURSTPulse

Represents a WURST frequency-swept pulse.

Termination Criteria

Termination criteria are used for stopping sequences under specific conditions, such as when a certain signal-to-noise ratio is reached or when a specific time has elapsed. They are used through the interface.terminate_at method.

Criteria

A class for defining criteria for terminating experiments. This should

TimeCriteria

A class for defining criteria for terminating experiments. This should

SNRCriteria

A class for defining criteria for terminating experiments. This should

Interfaces

Interface

Represents the interface connection from autoEPR to the spectrometer.

BrukerAWG

Represents the interface for connecting to AWG based Bruker ELEXSYS-II

BrukerMPFU

Represents the interface for connecting to MPFU based Bruker ELEXSYS-II

ETH_awg_interface

Represents the interface for connecting to Andrin Doll style spectrometers.

PyEPRControlInterface

Represents the interface for spectrometers built using PyEPR and connected with a local flask server.

XeprAPILink

This class links to the Bruker Xepr API to control the spectrometer.

Utilities

EPRAccessor

Xarray accessor for EPR datasets. Provides methods for saving, phase correction, normalization, FFT, and more.

Functions

I/O

eprload

A general versions of eprload

save_file

create_dataset_from_sequence

create_dataset_from_axes

Create an xarray dataset from a numpy array and a list of axes.

create_dataset_from_bruker

downconvert_dataset

Downconvert a dataset to baseband using a filter

Utilities

transpose_dict_of_list

Turns a dictionary of lists into a list of dictionaries.

transpose_list_of_dicts

Turns a list of dictionaries into a dictionary of lists.

round_step

gcd

Generates the greatest common divisor on a list of floats

sop

Spin Operator Matricies.

write_pulsespel_file

Write the pulsespel file for a given sequence.