Skip to main content

Non-linear least squares fitting of chemical kinetics data using ODE simulations

Project description

odenlls is a Python3 library for simulating and fitting chemical kinetics data. These two pieces are accomplished as follows:

  1. Kinetic models are simulated using numerical simulations of the ordinary differential equations (ODE) for an arbitrary set of chemical reactions. Rate constants and starting concentrations can be varied arbitrarily to observe the predicted changes in concentration with time.

  2. These ODE simulations are fit to experimental kinetic data using non-linear least squares (nlls) methods. These fits yield the best-fit rate constant and concentration parameters for a given set of kinetic data.

Dependencies

This package consists of a single Python module file that was developed using Python 3.6; however, it should work on most other Python 3 versions with the appropriate external dependencies listed below.

  • Numpy >= 1.13.3

  • scipy>=1.0.0

  • pandas>=0.21.1

  • matplotlib>=2.1.1

The package versions above were used during development. Older/newer versions should work as well. Older versions of these modules may work as well, but you may want to run the py.test unit tests (coming soon) to ensure they work properly.

Installation

odenlls is installable using either Python’s pip package manager or conda, the package manager for the Anaconda Python distribution.

To get the latest release using pip, use the following command:

$ pip install odenlls

Or to install from the latest GitHub commit:

$ pip install git+https://github.com/rnelsonchem/odenlls.git

Using conda, the following command will install the latest release of this package.

$ conda install -c rnelsonchem odenlls

Usage

The odenlls module capabilities are demonstrated in several Jupyter notebooks, which are located in the “examples” directory on the GitHub project page. A summary of these notebooks is as follows:

  • The TLDR Notebook is a very brief overview of odenlls functionality with very little explanatory text.

  • Notebook 1 demonstrates simulation of a simple first-order irreversible reaction.

  • In Notebook 2, reaction data fitting is shown for a user-generated set of first-order irreversible reaction data.

  • Notebook 3 highlights fitting of a real-world data set using a series of reversible first-order reactions.

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

odenlls-0.1.0.tar.gz (8.5 kB view details)

Uploaded Source

Built Distribution

odenlls-0.1.0-py3-none-any.whl (10.7 kB view details)

Uploaded Python 3

File details

Details for the file odenlls-0.1.0.tar.gz.

File metadata

  • Download URL: odenlls-0.1.0.tar.gz
  • Upload date:
  • Size: 8.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for odenlls-0.1.0.tar.gz
Algorithm Hash digest
SHA256 fb7d5facd42f6013889e17412de4376f1bd43b15ec09496d352f1944855eaa5b
MD5 bc348b8925aa893ffaa9be742ddd0b5e
BLAKE2b-256 9c2a4d8e3bfe7889decc1844f6467a555e7da65789ac42b583e2cf3305bd0846

See more details on using hashes here.

File details

Details for the file odenlls-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for odenlls-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 844c6154088f56587f845cfa138b869338b8aaa98afe9789e5b5e5a2cd0139e9
MD5 2d6a1902ec34ec2b8b866cb5ebb5aa97
BLAKE2b-256 2b51ded120ed3129030bee0c6fa96a0f9c3a5dc950ca122f3b462f20f6386888

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