Skip to main content

A simple Python library for compartment models

Project description

Compyrtment is a simple Python library to work with compartment models. It’s a simple tool to aid with fast prototyping with models such as the SIR, SIS and SEIR epidemic models or the Lotka-Volterra model of predation. It supports:

  • Designing models with arbitrary states and constant, linear and quadratic couplings between them;

  • Numerical integration of the ODE system of a model;

  • Numerical integration of ‘sensitivity curves’ - the gradient of each curve with respect to parameters as well as initial conditions;

  • Fitting a model’s parameters to existing data;

  • Stochastic simulation using Gillespie’s algorithm

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

Compyrtment-0.5.7.tar.gz (9.6 kB view details)

Uploaded Source

Built Distribution

Compyrtment-0.5.7-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

Details for the file Compyrtment-0.5.7.tar.gz.

File metadata

  • Download URL: Compyrtment-0.5.7.tar.gz
  • Upload date:
  • Size: 9.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.2

File hashes

Hashes for Compyrtment-0.5.7.tar.gz
Algorithm Hash digest
SHA256 f327743ad862ac56e037e4435c4edb948afd11086080ff0ed48a95a178e86337
MD5 5f4376ed642f0c74481c54d72c3289c1
BLAKE2b-256 f34cd2ce15d1e3131578408bd265b77b28fc154aa369cb8d548f42ad8d71775d

See more details on using hashes here.

File details

Details for the file Compyrtment-0.5.7-py3-none-any.whl.

File metadata

  • Download URL: Compyrtment-0.5.7-py3-none-any.whl
  • Upload date:
  • Size: 9.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.2

File hashes

Hashes for Compyrtment-0.5.7-py3-none-any.whl
Algorithm Hash digest
SHA256 f4da281ba81b4f01597897ba968dc2d5682ab14077beaac44cad8f4000b6c5b0
MD5 1b9a3b4a979c24cc6146f2896fea6334
BLAKE2b-256 7f64558df3800f0ba3090e4dd9d902f8e4af337d934956dc537528b486d93eb0

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