API Reference#

This section provides the auto-generated API reference for all public modules in pyrate_ta.

Top-Level Package (pyrate_ta)#

PyRATE-TA: kinetic analysis of time-resolved spectroscopy data.

Multi-exponential fitting, global analysis and target analysis with rate-matrix (K-matrix) models, and the DAS/EAS/SAS spectra that come out of them:

import pyrate_ta as pr
import pymorgan as pm

data = pm.load_1D("scan.pdat", data_type="PDAT")   # PyMORGAN loads
data.background_correct(tmin=-20, tmax=-5)         # PyMORGAN processes
fit = pr.fit_global(data, n_components=3)          # PyRATE-TA fits
data.plot_species_spectra(*fit.as_species_args())  # PyMORGAN plots

Scope. PyRATE-TA does not read files, own the dataset objects, or draw the standard spectroscopy figures – that is PyMORGAN’s job, and PyRATE-TA builds on it. The dependency is strictly one-way: pyrate_ta imports pymorgan, never the reverse. PyMORGAN’s plot_species_spectra deliberately takes plain arrays rather than a PyRATE-TA object so the arrow never has to reverse; the adapter (as_species_args) lives on this side.

Lazy public API. The solvers pull in scipy, and pymorgan itself chains in matplotlib and the loader registries – together roughly a second. Importing this package therefore binds only the names below; the module that provides a name is imported the first time that name is used (PEP 562). import pyrate_ta as pr is thus nearly free, and the GUI can put its splash screen on screen before paying for the heavy imports.