Skip to main content

Management of scientific experiments including their configuration, logging of data, execution and visualization of results.

Project description

Experiment Utilities (exputils)

Current version: 0.3.7 (15/11/2024)

Experiment Utilities (exputils) contains various tools for the management of scientific experiments and their experimental data. It is especially designed to handle experimental repetitions, including to run different repetitions, to effectively store and load data for them, and to visualize their results.

Main features:

  • Easy definition of default configurations using nested python dictionaries.
  • Setup of experimental configuration parameters using an ODF file (Libreoffice alternative of MS Excel).
  • Running experiments and their repetitions in parallel.
  • Logging of experimental data (numpy, json) with tensorboard support.
  • Loading and filtering of experimental data.
  • Interactive Jupyter widgets to load, select and plot data as line, box and bar plots.

You can find the documentation online: https://chrisreinke.github.io/exputils/

Requirements

Developed and tested on Python 3.11 on Linux (Ubuntu 24) but is compatible also with older Python versions >= 3.8.

Note: Jupter notebook is used for visualization. Due to some constraints (https://github.com/quantopian/qgrid/issues/372) only an older version of Jupyter can be used:

  • notebook <= 6.5.6
  • ipywidgets >= 7.5.1,<= 7.6.5

Installation

1) Exputils Package

Two options are available, either via pip or directly from the source code.

PIP (recommended)

pip install experiment-utilities

From Source

Clone the repository via git and install via pip:

git clone https://github.com/ChrisReinke/exputils.git .
pip install ./exputils

2) Jupiter Notebook

For using the exputils GUIs for loading and plotting of data in Jupyter Notebook, the qgrid widget must be activated. (Note: The GUI is currently only working for Jupyter notebooks <= 6.5.) Activate qgrid with:

jupyter contrib nbextension install --user
jupyter nbextension enable --py --sys-prefix widgetsnbextension
jupyter nbextension enable --py --sys-prefix qgrid

It is recommended to use the Jupyter Notebooks Extensions to allow folding of code and headlines. This makes the notebooks more readable. Activate the extensions with:

jupyter nbextension enable codefolding/main
jupyter nbextension enable collapsible_headings/main

Documentation

The documentation can be found online at https://chrisreinke.github.io/exputils/.

To generate the documentation MkDocs needs to be installed which can be done via the docs option:

pip install experiment-utilities[docs]

Then run:

mkdocs serve

Development

If you wish to further develop the exputils, then it is useful to install it in editable mode and to run its unittests. Download and install the source code via:

git clone https://github.com/ChrisReinke/exputils.git .
pip install -e ./exputils[test]

To run the tests call:

pytest

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

experiment_utilities-0.3.7.tar.gz (110.9 kB view details)

Uploaded Source

Built Distribution

experiment_utilities-0.3.7-py3-none-any.whl (119.6 kB view details)

Uploaded Python 3

File details

Details for the file experiment_utilities-0.3.7.tar.gz.

File metadata

  • Download URL: experiment_utilities-0.3.7.tar.gz
  • Upload date:
  • Size: 110.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.10

File hashes

Hashes for experiment_utilities-0.3.7.tar.gz
Algorithm Hash digest
SHA256 27b83f37bd2b4b2777b738ba3713ecba78539fa47efa3205b1a1afc641a29e1d
MD5 e0001102d376f31d88fd259314a5dc1d
BLAKE2b-256 a13f1978ccb387e82e09fd89bf8e5168bf611619bebb11b7249d4be951f906ce

See more details on using hashes here.

File details

Details for the file experiment_utilities-0.3.7-py3-none-any.whl.

File metadata

File hashes

Hashes for experiment_utilities-0.3.7-py3-none-any.whl
Algorithm Hash digest
SHA256 3e8320fc1e55a376a546c465e0d84121cb501886cc7e3d70b84753574a8caf14
MD5 1fe07be9ed81ea89b91c8f0e5fc40f64
BLAKE2b-256 f2dc61838aff357f42608a5f76a9d3d5ae7f8c3f3ddfdf175c01b58ffe3a5883

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