Skip to main content

A package to make isoconversional computations for non-isothermal kinetics

Project description

pICNIK

pICNIK is a package for isoconversional computations for non-isothermal kinetcis.
The package has an object oriented interface with two classes: DataExtraction and ActivationEnergy, with the purpose of managing the experimental data and computing activation energies ($E_{\alpha}$) with the next isoconversional methods:

  • Ozawa-Flynn-Wall (OFW)
  • Kissinger-Akahira-Sunose (KAS)
  • Friedman (Fr)
  • Vyazovkin (Vy)
  • Advanced method of Vyazovkin (aVy)

Installation

picnik can be installed from PyPi with pip: $ pip install picnik

DataExtractioin class

It has methods to open the .csv files containing the thermogravimetric data as pandas DataFrames for the experimental data, computing and adding the conversion for the process ($\alpha$) and the conversion rate ($d\alpha/dt$) as columns in the DataFrame.
The class also has methods for creating isoconversional DataFrames of time, temperature, conversion rates (for the OFW, KAS, Fr and Vy methods) and also "advanced" DataFrames of time and temperature (for the aVy method).
Example:

import picnik as pnk

files = ["HR_1.csv","HR_2.csv",...,"HR_n.csv"]
xtr = pnk.DataExtraction()
xtr.set_data(files)
xtr.data_extraction()
xtr.isoconversional()
xtr.adv_isoconversional()

The DataFrames are stored as attributes of the xtr object

ActivationEnergy class

This class has methods to compute the activation energies with the DataFrames created with the xtr object along with its associated error. The Fr(),OFW(),KAS() methods return a tuple of three, two and two elements respectively. The first element of the tuples is a numpy array containing the isoconversional activation energies. The second element contains the associated error within a 95% confidence interval. The third element in the case of the Fr() method is a numpy array containing the intercept of the Friedman method. The Vy() and aVy() only return a numpy array of isoconversional activation energies, the error associated to this methods are obtained with the Vy_error() and aVy_error() methods Example:

ace = pnk.ActivationEnergy(xtr.Beta,
                           xtr.TempIsoDF,
                           xtr.diffIsoDF,
                           xtr.TempAdvIsoDF,
                           xtr.timeAdvIsoDF)
E_Fr, E_OFW, E_KAS, E_Vy, E_aVy = ace.Fr(), ace.OFW(), ace.KAS(), ace.Vy(), ace.aVy()
Vy_e, aVy_e = ace.Vy_error(), ace.aVy_error()

The constructor of this class needs five arguments, a list/array/tuple of Temperature rates, and four DataFrames: one of temperature, one of convertsion rates and two "advanced" one of temperature and the other of time.

Saving results

The DataExtractionclass also has a method to export the results as .csv or .xlsx files:

xtr.save_df(E_Fr = E_Fr[0], 
            E_OFW = E_OFW[0], 
            E_KAS = E_KAS[0], 
            E_Vy = E_Vy, 
            E_aVy = E_aVy,
            file_t="xlsx" )

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

PICNIK-0.1.1.tar.gz (14.0 kB view details)

Uploaded Source

Built Distribution

PICNIK-0.1.1-py3-none-any.whl (13.0 kB view details)

Uploaded Python 3

File details

Details for the file PICNIK-0.1.1.tar.gz.

File metadata

  • Download URL: PICNIK-0.1.1.tar.gz
  • Upload date:
  • Size: 14.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.8 CPython/3.8.10 Linux/5.4.0-81-generic

File hashes

Hashes for PICNIK-0.1.1.tar.gz
Algorithm Hash digest
SHA256 a2149ac0a852ed8628b61d9ad907e96d97cfa37c4686118c2a9da5b425d7aded
MD5 41e4288e374b0198c46c2a1390ffa0ec
BLAKE2b-256 396a6f7c34cf51319719168221d99c78bda265f8aaba34abe6a3d4015719a293

See more details on using hashes here.

File details

Details for the file PICNIK-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: PICNIK-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 13.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.8 CPython/3.8.10 Linux/5.4.0-81-generic

File hashes

Hashes for PICNIK-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 82acc5b8fc3c0c59c6bb4495c2fa78f4b4f8e9b828e7c8dae1d21bb265ceaf10
MD5 79effb018f930855232c231f3cd6d7c2
BLAKE2b-256 6cafb90d33b23f8a2a3200467278d066e71f6c5eba3122a6db928b227f3a691d

See more details on using hashes here.

Supported by

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