Fast stochastic ecological simulations on graphs in Python and numpy
Project description
What is Viridicle?
Viridicle is a library for simulating stochastic graphical ecological models. It implements the continuous time models described in Section 6 of Durrett and Levin 1994. The library is written in C for speed, but has a Python API for ease of use. It supports well-mixed systems, multi-dimensional periodic lattices, and arbitrary graphs, with up to 256 species, and is substantially faster than comparable software written in Python alone.
Viridicle models an ecological system as a graph, where each vertex denotes a discrete site - an island, an oasis, a point on a Petri dish, etc. Each site is small enough that we can model its state by assigning it a single number specifying which species is occupying it. Traditionally, 0 denotes an unoccupied site, but neither the mathematics nor the code require this.
The system changes over time as a continuous-time Markov chain, where each directed edge in the system is a Poisson point process. That is, at any given moment, for every edge in the system, the time until the edge's vertices change to state is exponentially distributed with some rate that depends on the state of the system. The model is implemented using the Gillespie algorithm. For further details, consult the documentation.
Installation
To install Viridicle from the PyPi repo, run:
pip install viridicle
If you want to compile from source yourself, first make sure that you have gcc installed, along with Python, including its development headers. Then, run:
git clone https://github.com/TheoremEngine/viridicle.git
cd viridicle
python3 setup.py install
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
File details
Details for the file viridicle-0.1.1-cp39-cp39-win_amd64.whl
.
File metadata
- Download URL: viridicle-0.1.1-cp39-cp39-win_amd64.whl
- Upload date:
- Size: 77.4 kB
- Tags: CPython 3.9, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0f47e19ed702814cca5f4e7dc599004bb64cc15afca46afafbcb5552f33a0cf7 |
|
MD5 | c6de6e13e7fa80cdddc205339025485b |
|
BLAKE2b-256 | a5fa1576d5f61d051c8cffc3da56d8b40f7d1ac020db92eecc6c8bb9536b0357 |
File details
Details for the file viridicle-0.1.1-cp39-cp39-manylinux2010_x86_64.whl
.
File metadata
- Download URL: viridicle-0.1.1-cp39-cp39-manylinux2010_x86_64.whl
- Upload date:
- Size: 196.0 kB
- Tags: CPython 3.9, manylinux: glibc 2.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bd80204ef2771250ebd1deb3abc13613f9bf427df6f63461f64cada8af2fbb30 |
|
MD5 | 43f60db75f123fc66524692152c7d789 |
|
BLAKE2b-256 | 89b7b02e42d65204daf3d0c4ca76935459ab61b621ca074a1b14bb7e36eec51b |
File details
Details for the file viridicle-0.1.1-cp39-cp39-manylinux1_x86_64.whl
.
File metadata
- Download URL: viridicle-0.1.1-cp39-cp39-manylinux1_x86_64.whl
- Upload date:
- Size: 196.0 kB
- Tags: CPython 3.9
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ffea025d304e88096e1f912343c3fc984b0d5813140ccb2c504cf7b445e29536 |
|
MD5 | 0232cd398b29f3966feb131f841fa2ce |
|
BLAKE2b-256 | de474c9e7d574a9a36650c5660611d04a2d01370e82136596730804f2bee6cd7 |
File details
Details for the file viridicle-0.1.1-cp39-cp39-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: viridicle-0.1.1-cp39-cp39-macosx_10_9_x86_64.whl
- Upload date:
- Size: 78.3 kB
- Tags: CPython 3.9, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ee268bf176acfed2a69e6e56630e9c3b8e6c9de1111b33623ec3827d83464a57 |
|
MD5 | ac00c24924c9870fd2988c2da1ce64bb |
|
BLAKE2b-256 | 2cc6889af840c6408ebb0f1357f39363ae3c7e61276adb4c15ac683c96089983 |
File details
Details for the file viridicle-0.1.1-cp38-cp38-win_amd64.whl
.
File metadata
- Download URL: viridicle-0.1.1-cp38-cp38-win_amd64.whl
- Upload date:
- Size: 77.4 kB
- Tags: CPython 3.8, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0aa96357cab63a936bc90f24bcc0b986936b68b066749c26a7766c0c78aa2dc2 |
|
MD5 | 8fcf7604e56838383847010cef40bb0f |
|
BLAKE2b-256 | 175fd608821bdf6c3505743ced1aee56c4ec9170372950ec90f6ee6d163838d0 |
File details
Details for the file viridicle-0.1.1-cp38-cp38-manylinux2010_x86_64.whl
.
File metadata
- Download URL: viridicle-0.1.1-cp38-cp38-manylinux2010_x86_64.whl
- Upload date:
- Size: 197.5 kB
- Tags: CPython 3.8, manylinux: glibc 2.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ebf4f032a92ecca5b02f97363596a55552c43c47c652f760a76670c5c6b50aa0 |
|
MD5 | b9168d7907a788e9cac7941878ada49c |
|
BLAKE2b-256 | 95e4bc67c139718ef62091326d00e04df2946e7cb673e866f4c21dac2518e0d1 |
File details
Details for the file viridicle-0.1.1-cp38-cp38-manylinux1_x86_64.whl
.
File metadata
- Download URL: viridicle-0.1.1-cp38-cp38-manylinux1_x86_64.whl
- Upload date:
- Size: 197.5 kB
- Tags: CPython 3.8
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5b1a065e23938a82a13648cb5d466ef4fbf8cee10654e54412f2cef498106b4a |
|
MD5 | a3dbf9e088013617df08ee0ac94d3dad |
|
BLAKE2b-256 | b35b1f2bc7c2ff8f4f27272f2bdf22e3b8cd77d2fe1e3ff5142bcbd0be3aa535 |
File details
Details for the file viridicle-0.1.1-cp38-cp38-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: viridicle-0.1.1-cp38-cp38-macosx_10_9_x86_64.whl
- Upload date:
- Size: 78.3 kB
- Tags: CPython 3.8, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1358693111ed16d44dfaa55b7f742a9b15305cf7871328bd8284bac221c481ce |
|
MD5 | ccfae643a50901efbd63a6921c2e56e2 |
|
BLAKE2b-256 | 3320ffcb0d948f10dbaebdebe10ec466f156440ee025cabd3b821308090dca6a |
File details
Details for the file viridicle-0.1.1-cp37-cp37m-win_amd64.whl
.
File metadata
- Download URL: viridicle-0.1.1-cp37-cp37m-win_amd64.whl
- Upload date:
- Size: 77.2 kB
- Tags: CPython 3.7m, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2db7a7c1ebc2ddf8422e248b60a52581c71b201f96260074743082dab868e0b1 |
|
MD5 | 919ad33c5bbe81980fa76a943f3766a2 |
|
BLAKE2b-256 | 58c66334e82399aaa848de0e0caaac0ae497d56febaa35f411b6ee4751349294 |
File details
Details for the file viridicle-0.1.1-cp37-cp37m-manylinux2010_x86_64.whl
.
File metadata
- Download URL: viridicle-0.1.1-cp37-cp37m-manylinux2010_x86_64.whl
- Upload date:
- Size: 199.9 kB
- Tags: CPython 3.7m, manylinux: glibc 2.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 114eac0711ebfb360205f59a4cd7cb740e47bfc85cc53d1234b412aa9c2e717a |
|
MD5 | c0d77ba59288a9b3f14320908aab4d4d |
|
BLAKE2b-256 | cbeac41d07bb3cb02d4bc1291d3b8ceefe1fa0702768a07578f640e8ac34f8d3 |
File details
Details for the file viridicle-0.1.1-cp37-cp37m-manylinux1_x86_64.whl
.
File metadata
- Download URL: viridicle-0.1.1-cp37-cp37m-manylinux1_x86_64.whl
- Upload date:
- Size: 199.9 kB
- Tags: CPython 3.7m
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 307e6398bf7e34e199fc3edfcec6281658aba83a7fbd2a458f65d704e5ead7a2 |
|
MD5 | 589b9d4258e47359a6a78ea12b0a563a |
|
BLAKE2b-256 | 587a3a5bef8f4a66ef49685fb798e207a233193f88d16bba86d01e0d5814eb97 |
File details
Details for the file viridicle-0.1.1-cp37-cp37m-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: viridicle-0.1.1-cp37-cp37m-macosx_10_9_x86_64.whl
- Upload date:
- Size: 78.1 kB
- Tags: CPython 3.7m, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e559624349c66be99d776268dcf0a211c07d1caff804ce55dd5761a957b3d766 |
|
MD5 | 44d5c00432eecfecb6a66a0b196a83fa |
|
BLAKE2b-256 | 35a481a69636313cceb43531a85405a569635ddfbf545d65aac78d4b4fe3ff89 |
File details
Details for the file viridicle-0.1.1-cp36-cp36m-win_amd64.whl
.
File metadata
- Download URL: viridicle-0.1.1-cp36-cp36m-win_amd64.whl
- Upload date:
- Size: 72.9 kB
- Tags: CPython 3.6m, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d73767a1e70d8069af07102dfcb8f02179a9653b9838fee7eaa12b5ccaa60e85 |
|
MD5 | ce0e96360ca395637b4028de22175bce |
|
BLAKE2b-256 | b912c3eb728850a87c4f80d601dbc7cca1e5e651c816e98554e85b1ece4a67fb |
File details
Details for the file viridicle-0.1.1-cp36-cp36m-manylinux2010_x86_64.whl
.
File metadata
- Download URL: viridicle-0.1.1-cp36-cp36m-manylinux2010_x86_64.whl
- Upload date:
- Size: 156.6 kB
- Tags: CPython 3.6m, manylinux: glibc 2.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 647c1cca378d7b83491b43378d0bb1437c896e25b2336206f9b1d5639118346c |
|
MD5 | 967b8211c3d1863fd0c9a781e2ef7e24 |
|
BLAKE2b-256 | 2baad1d1118154df347db20f4181814b69d6374cc79269ec8991895a7b03b261 |
File details
Details for the file viridicle-0.1.1-cp36-cp36m-manylinux1_x86_64.whl
.
File metadata
- Download URL: viridicle-0.1.1-cp36-cp36m-manylinux1_x86_64.whl
- Upload date:
- Size: 156.6 kB
- Tags: CPython 3.6m
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | acfebe5ea91002e2691c2ad774a0fccf6f9a32a45f934a460e61d3086c81c819 |
|
MD5 | 5211d8aa2206eca48bad26f1fddbe022 |
|
BLAKE2b-256 | 371da7f129c63f3541f9b7fb7430c28dc4fee4722704cf43483db651f89a9546 |
File details
Details for the file viridicle-0.1.1-cp36-cp36m-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: viridicle-0.1.1-cp36-cp36m-macosx_10_9_x86_64.whl
- Upload date:
- Size: 67.8 kB
- Tags: CPython 3.6m, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 86dab2b27d7bb4908b7dcdcc4e9e2b7a55a4b4f5ecd4f37735177c55dc0f8a91 |
|
MD5 | c4a5a1430df8a5c84523c5643acf7369 |
|
BLAKE2b-256 | 15bce0f3e30ccb7866a14a2179ab7c3275e1ebe0c511f903dcff9574f53fd9bc |