Skip to main content

TRXASprefitpack: package for TRXAS pre- and fitting process which aims for the first order dynamics

License: LGPL v3

PyPI version

Documentation Status

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
    1. match_scale: Match the scaling of each energy scan data to one reference time delay scan data
  • Calc Utility
    1. calc_broad: broaden theoretically calculated line shape spectrum with voigt profile
    2. calc_dads: Calculates decay associated difference spectrum from experimental energy scan and sum of exponential decay model
    3. calc_sads: Calculates species associated difference spectrum from experimental energy scan and 1st order rate equation model
    4. calc_dads_gui: GUI wrapper for calc_dads utility (New! in 0.7.2)
    5. 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
    1. fit_static: fitting sum of voigt component or voigt broadened experimental spectrum with experimental static spectrum
    2. fit_tscan: Find lifetime constants or oscillation period from experimental time delay spectrum
    3. fit_tscan_gui: GUI wrapper for fit_tscan utility (New! in 0.7.1)
    4. fit_tscan_qt: PyQt5 workflow for loading, configuring, fitting, plotting, exporting, and confidence-interval scans (New! in 0.9.0)

Libraries

  • mathfun

    1. 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).
    2. provides factor analysis routine of time delay scan data, when time zero, lifetime constant and irf parameter (i.e. fwhm) are given.
    3. Solve diagonalizable 1st order rate equation exactly with arbitrary initial condition.
    4. Special fast solver for certain type (sequential decay and lower triangular rate equation) of 1st order rate equation
  • res

  1. Provides scalar residual function and its gradient for 5 fitting model based on seperation scheme in least square regression. Such models are

    1. sum of voigt function, edge and polynomial baseline
    2. voigt broadened theoretical spectrum, edge and polynomial baseline
    3. Convolution of exponential decay and (gaussian, cauchy, pseudo voigt approximation) instrumental response function.
    4. Convolution of damped oscillation and (gaussian, cauchy, pseudo voigt approximation) instrumental response function.
    5. Sum of above two model.
  2. Additionally provides Hessian for following 2 fitting model based on seperation scheme in least square regression

    1. sum of voigt function, edge and polynomial baseline
    2. Convolution of exponential decay and (gaussian, cauchy, pseudo voigt approximation) instrumental response function.
  • driver
  1. Provides driver routine to fit static spectrum with two model based on seperation scheme in least square regression.

    1. sum of voigt function, edge and polynomial baseline
    2. voigt broadened theoretical spectrum, edge and polynomial baseline
  2. 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.

    1. Convolution of exponential decay and (gaussian, cauchy, pseudo voigt approximation) instrumental response function.
    2. Convolution of damped oscillation and (gaussian, cauchy, pseudo voigt approximation) instrumental response function.
    3. Sum of above two model.
  3. For irf convoluted exponential decay model, you can select which lifetimes are shared or not.

  4. Save and load fitting result through hdf5 format

  5. Provides routine to evaluate confidence interval and compare two fit based on f-test.

  • See source documents for stable version Docs
  • See source documents for latest version Docs

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

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.git
    • git checkout v0.9.0
    • cd TRXASprefitpack
    • pip install ".[qt]"

Qt applications

After installing the qt extra, launch the applications with:

  • fit_tscan_qt
  • calc_dads_qt

From a source checkout, the corresponding wrapper scripts can also be run without installing the package:

  • python bin/fit_tscan_gui_qt.py
  • python 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)

Source distribution for TRXASprefitpack 0.9.0
File Size Uploaded
trxasprefitpack-0.9.0.tar.gz 233.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for TRXASprefitpack 0.9.0
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.9.0 This release

2 release files

0.8.0

2 release files

0.7.2

2 release files

0.7.1

2 release files

0.7.0

2 release files

0.6.1

2 release files

0.6.0

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.9

2 release files

0.4.8

2 release files

0.4.6

2 release files

0.4.5

2 release files

0.4.4

2 release files

0.4.3

2 release files

0.4.2

2 release files

0.4.1

2 release files

0.4

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page