Skip to main content

Python computational experiment management

Project description

https://badge.fury.io/py/epyc.svg https://readthedocs.org/projects/epyc/badge/?version=latest https://github.com/simoninireland/epyc/actions/workflows/ci.yaml/badge.svg https://zenodo.org/badge/63255319.svg https://joss.theoj.org/papers/10.21105/joss.03764/status.svg https://www.gnu.org/graphics/gplv3-88x31.png

Overview

epyc is a Python module for controlling a long-running series of computational experiments, as is often found when writing simulations of complex networks and other such domains. There is often a need to perform a computation across a multi-dimensional parameter space, varying the parameters, performing and aggregating multiple repetitions, and wrangling results for analysis and presentation. Often the experiments being performed are on such a scale as to require the use of a computing cluster to perform multiple experiments simultaneously.

Managing all these tasks is complicated, so epyc tries to automate it. It provides a way to define a “laboratory” performing a collection of “experiments” whose parameters and results are collected togethr into “result sets” and recorded in a “lab notebook” for later retrieval. Laboratories can be sequential (for a single machine) or parallel (to use a multicore or cluster of machines); lab notebooks can be persistent to allow experiments to be fired-off and their results retrieved later – handy if you use a laptop. Notebooks store all the data and metadata in a portable format to improve the reproducibility of computational experiments.

epyc also includes a small number of “experiment combinators” that separate the logic of a single experiment from the logic of performing multiple repetitions and other structuring tasks. This means that any experiment can be repeated and statistically summarised, for example.

Installation

epyc works with Python 3.6 and above, and with PyPy3. You can install it directly from PyPi using pip:

pip install epyc

The master distribution of epyc is hosted on GitHub. To obtain a copy, just clone the repo:

git clone git@github.com:simoninireland/epyc.git
cd epyc
pip install .

Examples

See the examples directory for code examples.

Documentation

API documentation for epyc can be found on ReadTheDocs. You can also read a Jupyter notebook describing several epyc use cases online here.

Author and license

Copyright (c) 2016-2022, Simon Dobson <simoninireland@gmail.com>

Licensed under the GNU General Public Licence v3.

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

epyc-1.7.2.tar.gz (79.0 kB view details)

Uploaded Source

File details

Details for the file epyc-1.7.2.tar.gz.

File metadata

  • Download URL: epyc-1.7.2.tar.gz
  • Upload date:
  • Size: 79.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.5

File hashes

Hashes for epyc-1.7.2.tar.gz
Algorithm Hash digest
SHA256 9aae0cd0ee809c7dec0e8c6e7df8f8698990fcca45543fe547d32808462c7de2
MD5 8d2db5b45ff0b72760a3c41bd1e117dd
BLAKE2b-256 47dd26c7523c725a4d8bf768b532b599825a152ff8a80a4907f274fca55ce1d5

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