API Reference#
This section provides the auto-generated API reference for all public modules in pymorgan.
- 1D Pipeline API (
pymorgan.oneD)- Dataset1D (
pymorgan.oneD.dataset) - Loaders & Registry (
pymorgan.oneD.load,pymorgan.oneD.registry) - Processing & Chirp Correction (
pymorgan.oneD.process,pymorgan.oneD.chirp) - Advanced Scatter Removal (
pymorgan.oneD.scatter) - Stitching & SVD (
pymorgan.oneD.stitch,pymorgan.oneD.svd) - 1D Plotters (
pymorgan.oneD.plot)
- Dataset1D (
- 2D Pipeline API (
pymorgan.twoD) - Calibration Engine API (
pymorgan.cal)- Package Overview (
pymorgan.cal) - Data Structures & Optical Dispersion Models (
pymorgan.cal.models) - Reference & Experimental Spectrum Loaders (
pymorgan.cal.load) - Wavelength Axis Fitting & Routing (
pymorgan.cal.fit) - Gaussian Spectrum Diagnostics & Utilities (
pymorgan.cal.spectrum_fit,pymorgan.cal.utils)
- Package Overview (
- Steady-State Spectra API (
pymorgan.steadyState) - Workflows, Interoperability & Provenance API
- Auto-Detection (
pymorgan.detect) - Glotaran / pyglotaran Interoperability (
pymorgan.oneD.interop) - FAIR HDF5 Metadata Helpers (
pymorgan.hdf5_meta) - Processing Provenance & Script Export (
pymorgan.provenance) - Processing Recipes (
pymorgan.recipe) - Batch Processing Engine (
pymorgan.batch) - Project Sessions (
pymorgan.project)
- Auto-Detection (
- Settings, Display & Helpers API
Top-Level Package (pymorgan)#
PyMORGAN: plotting and analysis of ultrafast time-resolved spectroscopy data.
The 1-D branch is a load/process/plot pipeline built around
pymorgan.oneD.Dataset1D; steady-state absorption/emission/excitation
spectra live in pymorgan.steadyState; presentation is centralised in
pymorgan.settings.Settings.
import pymorgan as pm
pm.apply_style() data = pm.load_1D(“scan.pdat”, data_type=”PDAT”) data.background_correct(tmin=-20, tmax=-5) data.plot_contour(Zscale=20) data.plot_kinetics([2132, 2218], plotStyle=”-“) pm.show_plots()
Scope. PyMORGAN loads, processes and plots; it does not fit kinetics.
Trace extraction and fitting – multi-exponential, global and target analysis
(rate matrices, EAS/SAS) – live in the companion project PyRATE-TA, which
shares this loader/dataset layer. The one piece of that seam PyMORGAN keeps is
pymorgan.oneD.plot.plot_species_spectra(), which renders fitted spectra
from plain arrays.
Lazy public API. The pipelines pull in matplotlib, scipy and the loader
registries, which costs 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 pymorgan as pm is thus
nearly free, and the GUI can put its splash screen on screen before paying for
the heavy imports. Everything else – from pymorgan import load_1D,
pm.twoD.plot_map, help(pm) – behaves exactly as before.