TRXASprefitpack: package for TRXAS pre- and fitting process which aims for the first order dynamics
stable version: 0.9.0
current version: 0.9.0
next development version: 0.10.dev
Copyright: (C) 2021-2026 Junho Lee (@pistack) (Email: phistack@kaist.ac.kr)
Licence: LGPL3
Features
Utilities
- Match Utility
- match_scale: Match the scaling of each energy scan data to one reference time delay scan data
- Calc Utility
- calc_broad: broaden theoretically calculated line shape spectrum with voigt profile
- calc_dads: Calculates decay associated difference spectrum from experimental energy scan and sum of exponential decay model
- calc_sads: Calculates species associated difference spectrum from experimental energy scan and 1st order rate equation model
- calc_dads_gui: GUI wrapper for calc_dads utility (New! in 0.7.2)
- calc_dads_qt: PyQt5 workflow for DADS, SADS, SVD, custom real-valued rate models, plotting, and result export (New! in 0.9.0)
- Fit Utility
- fit_static: fitting sum of voigt component or voigt broadened experimental spectrum with experimental static spectrum
- fit_tscan: Find lifetime constants or oscillation period from experimental time delay spectrum
- fit_tscan_gui: GUI wrapper for fit_tscan utility (New! in 0.7.1)
- fit_tscan_qt: PyQt5 workflow for loading, configuring, fitting, plotting, exporting, and confidence-interval scans (New! in 0.9.0)
Libraries
-
mathfun
- provides exact function for the convolution of exponential decay or exponentially damped oscillation and instrumental response function. There are three type of instrumental response function (gaussian, cauchy and pseudo voigt).
- provides factor analysis routine of time delay scan data, when time zero, lifetime constant and irf parameter (i.e. fwhm) are given.
- Solve diagonalizable 1st order rate equation exactly with arbitrary initial condition.
- Special fast solver for certain type (sequential decay and lower triangular rate equation) of 1st order rate equation
-
res
-
Provides scalar residual function and its gradient for 5 fitting model based on seperation scheme in least square regression. Such models are
- sum of voigt function, edge and polynomial baseline
- voigt broadened theoretical spectrum, edge and polynomial baseline
- Convolution of exponential decay and (gaussian, cauchy, pseudo voigt approximation) instrumental response function.
- Convolution of damped oscillation and (gaussian, cauchy, pseudo voigt approximation) instrumental response function.
- Sum of above two model.
-
Additionally provides Hessian for following 2 fitting model based on seperation scheme in least square regression
- sum of voigt function, edge and polynomial baseline
- Convolution of exponential decay and (gaussian, cauchy, pseudo voigt approximation) instrumental response function.
- driver
-
Provides driver routine to fit static spectrum with two model based on seperation scheme in least square regression.
- sum of voigt function, edge and polynomial baseline
- voigt broadened theoretical spectrum, edge and polynomial baseline
-
Provides driver routine to fit a number of time delay scan data sets with shared lifetime parameter based on separation scheme in least square regression.
- Convolution of exponential decay and (gaussian, cauchy, pseudo voigt approximation) instrumental response function.
- Convolution of damped oscillation and (gaussian, cauchy, pseudo voigt approximation) instrumental response function.
- Sum of above two model.
-
For irf convoluted exponential decay model, you can select which lifetimes are shared or not.
-
Save and load fitting result through
hdf5format -
Provides routine to evaluate confidence interval and compare two fit based on
f-test.
How to get documents for TRXASprefitpack package
-
From www web
- Docs are hosted in readthedocs
-
From source
- go to docs directory and type
- for windows:
./make.bat - for mac and linux:
make
- for windows:
- go to docs directory and type
How to install TRXASprefitpack package
- Easy way
pip install TRXASprefitpack- For the PyQt5 applications:
pip install "TRXASprefitpack[qt]"
- Advanced way (from release tar archive)
- Downloads release tar archive
- unpack it
- go to TRXASprefitpack-* directory
- Now type
pip install .
- Advanced way (from repository)
git clone https://github.com/pistack/TRXASprefitpack.gitgit checkout v0.9.0cd TRXASprefitpackpip install ".[qt]"
Qt applications
After installing the qt extra, launch the applications with:
fit_tscan_qtcalc_dads_qt
From a source checkout, the corresponding wrapper scripts can also be run without installing the package:
python bin/fit_tscan_gui_qt.pypython bin/calc_dads_gui_qt.py
The custom SADS rate-model editor supports real-valued first-order models only. Complex eigenmodes and oscillatory rate-model terms are intentionally not exposed by the Qt application.
Examples
Jupyter notebook examples for TRXASprefitpack are located in
example
Metadata
Release files for TRXASprefitpack 0.9.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| trxasprefitpack-0.9.0.tar.gz | 233.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| trxasprefitpack-0.9.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 415.2 kB
Release files / trxasprefitpack-0.9.0.tar.gz
| Download URL | trxasprefitpack-0.9.0.tar.gz |
|---|---|
| Size | 233.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3674c1feabac3723a4027681265846e60e8ba13a4afed9dfc294d2d26f5fc9b0
|
|
BLAKE2b-256 checksum How to use checksums |
acd6d7cc9279d5ddd7c117e6c40acfd6b36afb9bc073747ea5577f978103f2aa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / trxasprefitpack-0.9.0-py3-none-any.whl
| Download URL | trxasprefitpack-0.9.0-py3-none-any.whl |
|---|---|
| Size | 181.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ce50831b7e5f9b5ac3f5e676f832a1e425ba19611b6bce467e11ff71cbcc4722
|
|
BLAKE2b-256 checksum How to use checksums |
75323e7993a4a25b2d35f9f1fe2e04153efc3f5f7d52675b15167aacb77a3e91
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|