API Reference#

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

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.