pyepr.fieldsweep_analysis

Classes

FieldSweepAnalysis

Analysis and calculation of FieldSweep Experiment.

SpinSystem

Functions

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

Module Contents

pyepr.fieldsweep_analysis.create_Nmodel(mwFreq)[source]

Create the field sweep model for a Nitroxide spin system.

Parameters:
mwFreqfloat

The microwave frequency in MHz

pyepr.fieldsweep_analysis.erot(*args)[source]

Passive rotation matrix.

pyepr.fieldsweep_analysis.eyekron(M)[source]

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

Parameters: M (np.ndarray): The matrix to be multiplied with the identity matrix.

Returns: np.ndarray: The Kronecker product of the identity matrix with M.

Parameters:

M (numpy.ndarray)

pyepr.fieldsweep_analysis.kroneye(M)[source]

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

Args:

M (numpy.ndarray): The matrix to compute the Kronecker product with.

Returns:

numpy.ndarray: The Kronecker product of M with the identity matrix of the same size.

pyepr.fieldsweep_analysis.ham(SpinSystem, elspins=None, nucspins=None)[source]
pyepr.fieldsweep_analysis.ham_ez(SpinSystem, B=None, espins=None)[source]
pyepr.fieldsweep_analysis.ham_nz(SpinSystem, B=None, nspins=None)[source]
pyepr.fieldsweep_analysis.resfields(system, Orientations, mwFreq, computeIntensities=True, RejectionRatio=1e-08, Range=(0, 100000000.0), Threshold=0, computeFreq2Field=True)[source]
pyepr.fieldsweep_analysis.build_spectrum(system, mwFreq, Range, knots=19, npoints=1000, Guass_broadening=0.25)[source]

Build a field sweep spectrum

Parameters:
systemSpinSystem

The spin system it must include: I & S spins, g, A, gn

mwFreqfloat

The microwave frequency in MHz

Rangefloat

The field range in mT

knotsint, optional

The number of knots of orientation averaging, by default 19

npointsint, optional

The number of points in the spectrum, by default 1000

Returns:
xAxis: np.ndarray

The xAxis in mT

y: np.ndarray

The spectrum intensities normalised to 1