Skip to main content

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

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

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

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.

Release history Release notifications | RSS feed

This release

0.5.7 This release

2 files

0.5.6

2 files

0.5.5

2 files

0.5.3

2 files

0.5.2

2 files

0.5.1

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page