API reference#
Everything documented here is importable from the top-level package, e.g.
from torchspin import SpinSystem, Experiment, Options, pepper; the
pages use those public names (torchspin.pepper), not the internal module
paths. Units follow EasySpin: energies and couplings in MHz, magnetic fields
in mT, microwave frequencies in GHz, angles in radians.
Core objects#
Most work needs only these: describe the spin system and the experiment, simulate, and fit.
Spin system: spins, interactions and broadenings (EasySpin |
|
Experimental parameters for CW EPR simulations (EasySpin |
|
Computational options for the CW EPR and ENDOR simulators (EasySpin |
|
Solid-state CW EPR spectrum (EasySpin |
|
Isotropic or fast-motion CW EPR spectrum of S = 1/2 systems in solution. |
|
Fit a model to data by least squares (port of EasySpin's |
|
Options for |
|
Result of |
|
Differentiable CW EPR powder spectrum of a one-electron spin system. |
|
Check whether |
|
Result of |
By topic#
Simulators: CW EPR, ENDOR and magnetometry simulators besides pepper and garlic
Pulse EPR: saffron, spidyan, pulse shapes and hardware, DEER kernels
Trajectories and molecular dynamics: cardamom, stochastic trajectories, molecular dynamics
Spin systems: nuclei, isotopologues, couplings, ORCA import, parameter estimates
Hamiltonians, levels and transitions: Hamiltonian terms, spin operators, energy levels, resonance fields and frequencies
Rotations, orientations and angular momentum: Euler angles, quaternions, orientation grids, angular momentum algebra
Line shapes and spectral processing: line shapes, convolution, modulation, baseline and time-domain processing
Data files, units and nuclear data: spectrometer files, unit conversion, nuclear data
Physical constants: physical constants and the package version
Performance:
torch.compileswitches
Submodules#
Packages that are imported as modules rather than as top-level names:
torchspin.lft: ligand-field tools (Telser’s programs), with the torchspin.lft: ligand-field tools (Telser’s programs, differentiable) user guide
torchspin.ml: parameter specifications, datasets and losses for machine learning on simulated spectra
torchspin.parallel: thread and process budgets
torchspin.fitgui: interactive fitting panel for notebooks