Skip to content

Public API

Everything you need for normal use is importable from the top-level package:

from simpyson import SimpCalc, Simpy, read_simp, simulate_spectrum
Name What it is Guide
read_simp Read a SIMPSON .spe, .fid, .xreim or .csdf file into a Simpy object. Analyse SIMPSON output
Simpy Container for FID, spectrum (Hz) and spectrum (ppm), with conversion and export. Analyse SIMPSON output
simulate_spectrum Simulate a spectrum from a spin system with automatic settings. Needs SIMPSON. From DFT to NMR spectrum
SimpCalc Build, save and run a SIMPSON input file. Needs SIMPSON to run. Custom simulations with SimpCalc

Pulse sequences

The pulse sequence templates are in simpyson.templates and are normally selected by name in SimpCalc:

Name Class
'no_pulse' NoPulse
'pulse_90' Pulse90
'cp_mas' CPMAS

Your own Tcl is wrapped by CustomPulseSequence; subclass PulseSequenceTemplate to write a reusable template.

Helpers

Other modules contain helpers used in the guides: read_vasp (VASP OUTCAR to ASE Atoms), hz2ppm and ppm2hz, and add_spectra.

Graphical interface

Simpyson provides a simple graphical user interface (GUI) for easy interaction with the software. Which is being tested, it can be accessed via the command line wiht simpyson gui. Currently it is not documented.