Skip to main content

CGCD

This Python library enables the analysis of thermoluminescent (TL) glow curves. It currently includes two main functions:

PeakDetection This function detects potential peaks present in a TL glow curve. It requires the following input parameters:

DataFrame: A pandas.DataFrame with two columns. The first column should contain temperature values (in degrees Celsius), and the second column should contain the corresponding light intensity for each temperature point.

Smoothing level (smoothing_level): An integer between 0 and 4. A value of 0 applies very strong smoothing, while 4 applies minimal smoothing.

Resolution (channels): An integer indicating the number of channels used to analyze the curve, which affects the resolution of peak detection.

Derivative factor (derivative_factor): A numerical value that multiplies the intensity of the second derivative, used to enhance peak detection.

As a result, the function returns a pandas.DataFrame containing the intensity of each detected peak and the corresponding temperature at which the maximum is estimated to occur.

Deconvolution This function performs a deconvolution fit of experimental TL glow curves using a mathematical model based on first-order kinetics. It supports both discrete and continuous trapped charge density distributions, allowing either Gaussian, exponential, or localized (discrete) peak modeling.

Input parameters:

df: A pandas.DataFrame containing two columns — temperature values (in °C or K) and corresponding TL intensities.

p: A 4×n vector (as a 1D list or NumPy array of length 4×n), representing the initial guess for each kinetic parameter of the n peaks, in the following order: [I₁_max, E₁_a, T₁_max, σ₁, ..., Iₙ_max, Eₙ_a, Tₙ_max, σₙ]

l_w: A 4×n vector specifying the lower bounds for each parameter during the fitting process, in the same format as p.

p_w: A 4×n vector specifying the upper bounds for each parameter during fitting, also in the same format as p.

max_iter: An integer specifying the maximum number of iterations allowed for the numerical optimization method. This controls the convergence behavior during the fitting process.

ROI: A tuple or list defining the region of interest, as the minimum and maximum temperatures that delimit the fitting area (e.g., [start_temp, end_temp]).

models: A list or vector of length n defining the model type for each component peak. Each element must be one of:

'G' – for a continuous Gaussian trap distribution

'E' – for a continuous Exponential trap distribution

'L' – for a Localized (discrete) trap distribution

The function returns two pandas.DataFrame objects:

Kinetic Parameters DataFrame: Contains the estimated parameters for each contribution:

Imax (a.u.)

Ea (eV)

Tmax (K)

σ (eV)

Statistical Residuals DataFrame: Reports a statistical analysis of the residuals from the curve fitting, helping evaluate the quality and reliability of the deconvolution.

Characteristics

  • ✅ Easy to use
  • ⚡ Fast and efficient
  • 🔧 Compatible with Python 3.7+

Installation

You can install the library using pip:

pip install CGCD==0.0.0

Metadata

Release files for CGCD 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for CGCD 0.0.2
File Size Uploaded Provenance Actions
cgcd-0.0.2.tar.gz 8.6 kB Without provenance Details for cgcd-0.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for CGCD 0.0.2
File Interpreter ABI Platform Actions
cgcd-0.0.2-py3-none-any.whl Python 3 none any Details for cgcd-0.0.2-py3-none-any.whl

Total release size: 17.4 kB

Release files / cgcd-0.0.2.tar.gz

Download URL cgcd-0.0.2.tar.gz
Size 8.6 kB
Tags Source
SHA-256 checksum
How to use checksums
1b75374bcf28c9feb11a1f9b22ae199a64eb58a3d0deae3abacfd772c4b2967e
BLAKE2b-256 checksum
How to use checksums
87c1fd4afb8d9232b5c8f79dd62beabf891ead3d3a06b3d76e1fcfa5170b4616
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.3

Release files / cgcd-0.0.2-py3-none-any.whl

Download URL cgcd-0.0.2-py3-none-any.whl
Size 8.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9cef44d127bdb987c4cb2b78897e2d3002885fafad43d29298e9c07af3564702
BLAKE2b-256 checksum
How to use checksums
16c3a2d83703d27c5c7e92e1ca2ab10dec515da6332c67553f859c5cf0bc57e5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.3

Security for CGCD 0.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files No provenance

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