Skip to main content

package for TRXAS pre-fitting process

Project description

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.8.0

current version: 0.8.0

current development version: 0.8.dev

Copyright: (C) 2021-2024 Junho Lee (@pistack) (Email: phistack@kaist.ac.kr)

Licence: LGPL3

Features

Utilites

  • 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 frim experimental energy scan and 1st order rate equation model
    4. calc_dads_gui: GUI wrapper for calc_dads utility (New! in 0.7.2)
  • 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)

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 paramter based on seperation 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
  • 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.8.0.
    • cd TRXASprefitpack
    • python3 -m build
    • cd dist
    • unpack tar gzip file
    • go to TRXASprefitpack-* directory
    • pip install .

Examples

Jupyter notebook examples for TRXASprefitpack are located in example

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

trxasprefitpack-0.8.0.tar.gz (149.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

TRXASprefitpack-0.8.0-py3-none-any.whl (117.3 kB view details)

Uploaded Python 3

File details

Details for the file trxasprefitpack-0.8.0.tar.gz.

File metadata

  • Download URL: trxasprefitpack-0.8.0.tar.gz
  • Upload date:
  • Size: 149.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for trxasprefitpack-0.8.0.tar.gz
Algorithm Hash digest
SHA256 ff6d076135325cfc601f9d44c8db164491df8da961c81630fbd70efa08b2ae6f
MD5 e0f621871794f5554bf2fa8f63346b54
BLAKE2b-256 4b7eac4daac07660be67549a3014de73063ce874ea427dd1e56008b7b2b58d55

See more details on using hashes here.

File details

Details for the file TRXASprefitpack-0.8.0-py3-none-any.whl.

File metadata

File hashes

Hashes for TRXASprefitpack-0.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 28ad48591b5b87c83d4b67d59dd663d70fd874c96229d520b99cf96fed8b6833
MD5 fa56c3dc1200c2b595f59db025525efa
BLAKE2b-256 4f8f05aede76b88442b911c8079cba8f2299b4c7779f36d564c38fabc787dd54

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page