Skip to content

Backend APIs#

Everything available in the scripting console, grouped by namespace. See the Scripting guides for worked examples.

Namespace Purpose
charts Build your own plots for reports and the analysis panel.
device Talk to the connected NMR instrument: read/set temperature, frequency, phase, pulses, and run sequences.
dosy DOSY: invert Stejskal-Tanner decays for \(P(D)\), build a shift-vs-\(D\) map, estimate \(r_H\).
fitting Curve fitting with automatic algorithm and initial-guess selection.
io Load, save, import, and export scan data and projects.
math Unit conversions (temperature, frequency, duration, angles) and small numeric helpers.
models Ready-made model functions for fitting.fit(data, models.<name>).
ops Pulse sequence building blocks; assemble into a list for device.execute(...).
qc Quality-control checks, measurement history, and trend tracking.
relax Spin-relaxation analysis: fit \(T_1\)/\(T_2\) rates and invert for correlation time \(\tau_c\).
reporting Progress reporting, custom data/figures for generated reports, and unattended report generation.
scans Work with multiple scans for analysis; scans.selected stays separate from scans.current.
series Series of scans: follow regions of the spectrum across scans and fit rate laws or your own formula.
spin Spin systems: seed one from a molecule, simulate it, and fit it to a scan with Scan.fit_spin_system.
state The app's current working data: signal, spectrum, scan, project, peaks.
viz Draw signals, spectra, and figures in the app's plots.

The objects these APIs return or accept are documented under Data types, and the enums, structures and messages their signatures name under Types.