Skip to main content

A comprehensive package for the analysis of kinetic data.

Project description

Documentation Status License: GPL v3 https://anaconda.org/erdzeichen/kimopack/badges/version.svg https://badge.fury.io/py/KiMoPack.svg https://anaconda.org/erdzeichen/kimopack/badges/latest_release_date.svg https://mybinder.org/badge_logo.svg https://zenodo.org/badge/400527965.svg

KiMoPack

KiMoPack is a project for the handling of spectral data measure at multiple time-points. The current design is optimised for the use with optical transient absorption data, but it has been successfully adapted for the use with transient x-ray emission and spectro-electro chemistry data.

It focuses on the main tasks an experimentator has: Loading and shaping of experiments, plotting of experiments, comparing of experiments, analysing experiments with fast and/or advanced fitting routines and saving/exporting/presenting the results.

For typical use a series of juypter notebooks are provided that guide through the a number of different use scenarios, and are suggesting the parameter that are typically set.

Installation

The basis of the program is a module called “plot_func.py” that contains all the necessary functions and classes. We recommend to use a package manager to install the program.

Install using “pip”:

$ pip install KiMoPack

Upgrade if already installed:

$ pip install KiMoPack -U

Install and update using “conda” from the channel erdzeichen:

$ conda install -c erdzeichen kimopack

Hint: the pip version is usually more recent than the conda version The files can also be downloaded from the github directory https://github.com/erdzeichen/KiMoPack or zenodo (see below)

In general it is a good idea to create a local environment to install files in python if you are using python for many tasks. In a local environment only the packages that are needed are installed, which usually avoids that conflicts can appear. It is very easy to do that.

Under Windows: open the anaconda command prompt or power shell (type anaconda under windows start) Under Linuxs: open a console

$ conda create --name KiMoPack
$ conda activate KiMoPack
$ conda install pytables

If you are working with a very old installation it is usually a good idea to also install an updated python

$ conda create --name KiMoPack python=3.10 ipython jupyterlab jupyter
$ conda activate KiMoPack
$ conda install pytables

into this environment KiMoPack can then be installed. We also recommend (optional) to install python-pptx to create power point slides and nbopen (which allows to automatically open a local server) into the environments. If one of the installs complains (error) that the user does not has sufficient rights, this installation can be done attaching “–user” to the following commands

pip install kimopack

pip install python-pptx
pip install nbopen

Finally, while still in the environement, activate nbopen. There are different commands for Windows/Linux/Mac By doing that in the local environment will open and activate the environment. If you left the environement already you can always go back with “conda activate KiMoPack”

python -m nbopen.install_win
python3 -m nbopen.install_xdg
Clone the repository and run ./osx-install.sh
Error: pytables:

in some versions I have been running in a problem with pytables when loading saved data. Using the conda forge version solved this problem for me

conda install -c conda-forge pytables

Best usage

While KiMoPack is a python library, we facilitate its use with Jupyter notebooks. For the typical analysis tasks we have developed a series of Notebooks that guide through the tasks.n These notebooks can be downloaded from https://github.com/erdzeichen/KiMoPack/tree/main/Workflow_tools or by command line.

To do that start any console (under windows e.g. type “cmd” and hit enter). In the console you then start python by typing “python” and hit enter, lastly you import Kimopack and run a function that downloads the files for you by typing “import KiMoPack; KiMoPack.download_all()” This downloads the notebooks and tutorials from github for you. If you instead use “import KiMoPack; KiMoPack.download_notebooks()” then only the workflow tools are downloaded. Please copy one of these notebooks into your data analysis folder and rename them to create a analysis log of your session. For more information please see the publication https://doi.org/10.1021/acs.jpca.2c00907, the tutorial videos, or the tutorial notebooks under https://github.com/erdzeichen/KiMoPack/tree/main/Tutorial_Notebooks_for_local_use.

Citation

We have written and submitted a paper introducing the toolbox under https://doi.org/10.1021/acs.jpca.2c00907

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

KiMoPack-7.2.11.tar.gz (99.5 MB view details)

Uploaded Source

Built Distribution

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

KiMoPack-7.2.11-py3-none-any.whl (107.8 kB view details)

Uploaded Python 3

File details

Details for the file KiMoPack-7.2.11.tar.gz.

File metadata

  • Download URL: KiMoPack-7.2.11.tar.gz
  • Upload date:
  • Size: 99.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for KiMoPack-7.2.11.tar.gz
Algorithm Hash digest
SHA256 17e8d7eb5f8665a6b6a446648011d7d7c00523a70f0d07f4d095391e0af10874
MD5 e0c0eacf118d7def8be58a1241e7e7b3
BLAKE2b-256 70d595cb937440508266ecb1ecfd6e8e73d40417a52ef969ac83c14ebe74b635

See more details on using hashes here.

File details

Details for the file KiMoPack-7.2.11-py3-none-any.whl.

File metadata

  • Download URL: KiMoPack-7.2.11-py3-none-any.whl
  • Upload date:
  • Size: 107.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for KiMoPack-7.2.11-py3-none-any.whl
Algorithm Hash digest
SHA256 37e348022159e27c2896c8216d23d01141e8957e45f54b290661fe8bec42e65b
MD5 67a779f16a7d3bd06202263927d6c3fa
BLAKE2b-256 eec8291e4993b17a05619a9b829cd286db8b335d7190c8772380f3068eb43466

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