Skip to main content
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://colab.research.google.com/assets/colab-badge.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

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)

These commands are installing only KiMoPack and the absolutely needed dependencies. However, there are several modules that work better if additional packages are installed. In general one should try to install all packages at the same time. Additional packages that I generally recommend are h5py and tables (for saving files), python-pptx (for saving power point slides) and keyboard (Window only, for interrupting the fits). Quite useful is also nbopen that allows you to double click on the notebook files. nbopen requires an activation at the end.

(leave away keyboard for Linux!) .. code-block:: text

$ pip install KiMoPack h5py tables nbopen python-pptx

(windows) python -m nbopen.install_win (Linux) python3 -m nbopen.install_xdg (MacOS) Clone the repository and run ./osx-install.sh

Upgrade if already installed:

$ pip install --upgrade KiMoPack

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. See the section towards the end of this Readme.

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.

You can try either of these “lazy” oneliners

ipython -c "import KiMoPack; KiMoPack.download_notebooks()"
python -c "import KiMoPack; KiMoPack.download_notebooks()"
python3 -c "import KiMoPack; KiMoPack.download_notebooks()"

If none of these work then 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.

Quickstart summary

  • Install Python >3.8 (Anaconda package or similar) Hint: installing with adding to Path makes life a lot simpler

  • Install KiMoPack

    minial: pip install KiMoPack better: pip install KiMoPack h5py tables nbopen python-pptx

  • Download Notebooks:

    ipython -c “import KiMoPack; KiMoPack.download_all()” Or https://github.com/erdzeichen/KiMoPack

  • Start with:

  • (Tutorial Folder) KiMoPack_tutorial_0_Introduction.ipynb (Workflow tools) TA_Raw_plotting_and_Simple_Fit.ipynb for your own data

If you have python in the path: go to the folder where your data is, download/copy the notebooks there (Tutorial or Workflow) and type in a console (e.g. windows +r, or the address line) “jupyter notebook” or “jupyter lab” to start working at this location.

Installing into a local environment

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 kimokack
$ pip install KiMoPack h5py tables keyboard nbopen python-pptx

Or if you also want make sure to have a later version of python

$ conda create --name kimopack python=3.12 ipython jupyterlab jupyter scipy numpy pandas
$ conda activate kimopack
$ pip install KiMoPack h5py tables keyboard nbopen python-pptx

Error: insufficient rights: If one of the installs complains (error) that the user does not has sufficient rights, this installation can be done attaching “–user”

$ conda create --name kimoPack
$ conda activate kimokack
$ pip install KiMoPack h5py tables keyboard nbopen python-pptx --user
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

Citation

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

Release files for KiMoPack 7.14.1

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

Source distribution (sdist)

Source distribution for KiMoPack 7.14.1
File Size Uploaded
kimopack-7.14.1.tar.gz 49.7 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for KiMoPack 7.14.1
File Interpreter ABI Platform
kimopack-7.14.1-py3-none-any.whl Python 3 none any Details

Total release size: 49.8 MB

Release files / kimopack-7.14.1.tar.gz

Download URL kimopack-7.14.1.tar.gz
Size 49.7 MB
Tags Source
SHA-256 checksum
How to use checksums
beb8e96e5a7e542573a3dd0812add6ac26a063671a710b10dcf25a33a4cb776a
BLAKE2b-256 checksum
How to use checksums
5e32182d3478deff338632f5177fed4fc3b692913cd742ac54913f23ba609fca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / kimopack-7.14.1-py3-none-any.whl

Download URL kimopack-7.14.1-py3-none-any.whl
Size 119.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a9e97777eacca6a9be94ec8f34c2834d317b6044b898d8fb486c482d1741430e
BLAKE2b-256 checksum
How to use checksums
3ea8dd874d8d596882c7f3caff51429f835095a87e04da781cc91ecce6f1ba4a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release history Release notifications | RSS feed

This release

7.14.1 This release

2 release files

7.13.6

2 release files

7.13.5

2 release files

7.13

2 release files

7.12.6

2 release files

7.12.5

2 release files

7.12.4

2 release files

7.12.1

2 release files

7.12.0

2 release files

7.11.8

2 release files

7.11.7

2 release files

7.11.6

2 release files

7.11.5

2 release files

7.11.4

2 release files

7.11.3

2 release files

7.11.2

2 release files

7.11.1

2 release files

7.11.0

2 release files

7.10.0

2 release files

7.9.21

2 release files

7.9.20

2 release files

7.9.18

2 release files

7.9.17

2 release files

7.9.16

2 release files

7.9.15

2 release files

7.9.14

2 release files

7.9.13

2 release files

7.9.12

2 release files

7.9.11

2 release files

7.9.10

2 release files

7.6.9

2 release files

7.6.8

2 release files

7.6.6

2 release files

7.6.5

2 release files

7.6.4

2 release files

7.6.3

2 release files

7.6.2

2 release files

7.6.1

2 release files

7.6.0

2 release files

7.5.8

2 release files

7.5.5

2 release files

7.5.4

2 release files

7.5.3

2 release files

7.5.2

2 release files

7.5.1

2 release files

7.4.18

2 release files

7.4.13

2 release files

7.4.12

2 release files

7.4.9

2 release files

7.4.8

1 release file

7.4.7

1 release file

7.4.6

1 release file

7.4.5

1 release file

7.4.3

1 release file

7.4.2

1 release file

7.4.1

1 release file

7.4.0

1 release file

7.3.12

1 release file

7.3.8

1 release file

7.3.7

1 release file

7.3.6

1 release file

7.3.5

1 release file

7.3.4

1 release file

7.3.3

2 release files

7.3.2

2 release files

7.3.1

2 release files

7.3.0

2 release files

7.2.17

2 release files

7.2.14

2 release files

7.2.13

2 release files

7.2.11

2 release files

7.2.10

2 release files

7.2.8

2 release files

7.2.7

2 release files

7.2.6

2 release files

7.2.5

2 release files

7.2.3

2 release files

7.2.2

2 release files

7.2.1

2 release files

7.1.21

2 release files

7.1.10

2 release files

7.1.9

2 release files

7.1.8

2 release files

7.1.7

2 release files

7.1.6

2 release files

7.1.5

2 release files

7.1.2

2 release files

7.1.1

2 release files

7.1.0

2 release files

7.0.15

2 release files

7.0.13

2 release files

7.0.12

2 release files

7.0.11

2 release files

7.0.10

2 release files

7.0.9

2 release files

7.0.8

2 release files

7.0.7

2 release files

7.0.6

2 release files

7.0.5

2 release files

7.0.4

1 release file

7.0.2

2 release files

7.0.1

2 release files

7.0.0

2 release files

6.14.2

2 release files

6.14.1

2 release files

6.13.8

2 release files

6.13.7

2 release files

6.12.6

2 release files

6.12.3

2 release files

6.12.2

2 release files

6.12.1

2 release files

6.12.0

2 release files

6.11.2

2 release files

6.11.0

2 release files

6.10.4

2 release files

6.10.3

2 release files

6.10.2

2 release files

6.10.1

2 release files

6.10.0

2 release files

6.9.2

2 release files

6.9.0

2 release files

6.8.1

2 release files

6.8.0

2 release files

6.7.14

2 release files

6.7.13

2 release files

6.7.12

2 release files

6.7.11

2 release files

6.7.10

2 release files

6.7.9

2 release files

6.7.7

2 release files

6.7.6

2 release files

6.7.4

2 release files

6.7.1

2 release files

6.6.12

2 release files

6.6.9

2 release files

6.6.8

2 release files

6.6.6

2 release files

6.6.5

2 release files

6.6.4

2 release files

6.6.2

2 release files

6.6.1

2 release files

6.6.0

2 release files

6.5.5

2 release files

6.5.4

2 release files

6.5.3

2 release files

6.5.2

2 release files

6.5.1

2 release files

6.4.3

2 release files

6.4.2

2 release files

6.4.0

2 release files

6.3.1

2 release files

6.3

2 release files

6.2.10

2 release files

6.2.9

2 release files

5.5.1

2 release files

5.5

3 release files

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