pyepr

Submodules

Attributes

Classes

Parameter

Represents a sequence or pulse parameter.

Pulse

The class for a general pulse.

Detection

Represents a detection pulse.

Delay

DEPRECATION WARNING: THIS WILL BE REMOVED SOON.

RectPulse

Represents a rectangular monochromatic pulse.

GaussianPulse

Represents a Gaussian monochromatic pulse.

FrequencySweptPulse

HSPulse

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

ChirpPulse

Represents a linear frequency-swept pulse.

WURSTPulse

Represents a WURST frequency-swept pulse.

SincPulse

Represents a sinc shaped monochromatic pulse.

CPMGDetection

CPMGDetection Implements a Carr-Purcell-Meiboom-Gill (CPMG) detection sequence.

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

EPRAccessor

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

FieldSweepAnalysis

Analysis and calculation of FieldSweep Experiment.

SpinSystem

CarrPurcellAnalysis

Analysis and calculation of Carr Purcell decay.

HahnEchoRelaxationAnalysis

Analysis, fitting and plotting for the HahnEchoRelaxation Sequence.

ReptimeAnalysis

Analysis and calculation of Reptime based saturation recovery.

ResonatorProfileAnalysis

Analysis and calculation of resonator profiles.

AmplifierLinearityAnalysis

LoSweepTuneSequence

Represents an experimental pulse sequence.

Interface

Represents the interface connection from autoEPR to the spectrometer.

Sequence

Represents an experimental pulse sequence.

HahnEchoSequence

Represents a Hahn-Echo sequence.

T1InversionRecoverySequence

Represents a T1 Inversion Recovery Sequence.

HahnEchoRelaxationSequence

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

T2RelaxationSequence

Represents a T2 relaxation sequence. This is an alias for HahnEchoRelaxationSequence.

FieldSweepSequence

Represents a Field Sweep (EDFS) sequence.

ReptimeScanSequence

Represents a reptime scan of a Hahn Echo Sequence.

ReptimeScan

Deprecated alias for ReptimeScanSequence.

CarrPurcellSequence

Represents a Carr-Purcell sequence.

ResonatorProfileSequence

Builds nutation based Resonator Profile sequence.

TWTProfileSequence

Builds TWT based Resonator Profile sequence.

KBBSequence

Builds a Kutnz-Boehlen-Bodenhausen echo sequence.

KBBPulseProfileSequence

Builds a KBB based Resonator Profile sequence.

Parameter

Represents a sequence or pulse parameter.

FourPulseDEERSequence

Represents an experimental pulse sequence.

FivePulseDEERSequence

Represents an experimental pulse sequence.

ThreePulseDEERSequence

Represents an experimental pulse sequence.

ThreePulseESEEMSequence

Represents an experimental pulse sequence.

HYSCORESequence

Represents an experimental pulse sequence.

Functions

eprload(path[, experiment, type, downconvert])

A general versions of eprload

build_table(source, params, params_widths)

sop(spins, comps)

Spin Operator Matricies.

transpose_dict_of_list(d)

Turns a dictionary of lists into a list of dictionaries.

transpose_list_of_dicts(d)

Turns a list of dictionaries into a dictionary of lists.

save_file(path, str)

autoEPRDecoder(dct)

gcd(values)

Generates the greatest common divisor on a list of floats

val_in_us(Param[, axis])

Returns the value or axis of a parameter in microseconds

val_in_ns(Param)

Returns the value or axis of a parameter in nanoseconds

add_phaseshift(data, phase)

Adds a phase shift to the data

round_step(value, step)

compute_upulses_not_trajectory(dUs)

compute_upulses_trajectory(dUs)

compute_magnetization_not_trajectory(Upulses, ...)

compute_magnetization_trajectory(Upulses, density0)

build_default_pulses([AWG, SPFU, tp])

get_all_axes(sequence)

get_all_fixed_param(sequence)

get_phase_cycle_attrs(sequence)

Collect the phase cycle of a sequence as dataset attributes.

create_dataset_from_sequence(data, sequence[, ...])

create_dataset_from_axes(data, axes[, params, ...])

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

create_dataset_from_bruker(filepath)

downconvert_dataset(dataset[, filter_type, IF, ...])

Downconvert a dataset to baseband using a filter

find_peak(dataset, freq[, freq_axis, search_range])

save_bruker(dataset, filename[, overwrite])

Save a dataset to a Bruker .DSC/ .DTA file

get_waveform_precision()

set_waveform_precision(precision)

create_Nmodel(mwFreq)

Create the field sweep model for a Nitroxide spin system.

erot(*args)

Passive rotation matrix.

eyekron(M)

Calculates the Kronecker product of the identity matrix with a matrix M.

kroneye(M)

Computes the Kronecker product of a matrix with the identity matrix of the same size.

ham(SpinSystem[, elspins, nucspins])

ham_ez(SpinSystem[, B, espins])

ham_nz(SpinSystem[, B, nspins])

resfields(system, Orientations, mwFreq[, ...])

build_spectrum(system, mwFreq, Range[, knots, ...])

Build a field sweep spectrum

detect_ESEEM(dataset[, type, threshold])

Detect if the dataset is an ESEEM experiment.

plot_1Drelax(*args[, fig, axs, cmap, labels])

Create a superimposed plot of relaxation data and fits.

phase_correct_respro(dataset)

Phase corrects a resonator profile dataset, by making sure the first point of each frequnecy is real

ceil(number[, decimals])

floor(number[, decimals])

calc_overlap(x, func1, func2)

Calcuates the overlap between two functions.

BSpline_extra(tck_s)

optimise_spectra_position(resonator_profile, fieldsweep)

plot_sequence_freq(sequence[, resonator, spectrum, ...])

Plots the relative pulses in the frequency domain. If a resonator or spectrum is provided, these are plotted as well.

draw_sequence(sequence[, ax])

Draws the sequence as an anotated matplotlib figure, showing

val_in_us(Param[, axis])

Returns the value or axis of a parameter in microseconds

add_phaseshift(data, phase)

Adds a phase shift to the data

Package Contents

pyepr.primary_colors = ['#7C37DB', '#DB7C17', '#166122'][source]
pyepr.primary_colors_light = ['#A787D6', '#D68B3B', '#67B875'][source]
pyepr.secondary_colors = ['#D95B6F', '#42A399', '#E1AE38'][source]