Skip to main content

A set of recursive population models for ecologists

Project description

generations

A set of recursive population models for ecologists including:

  • Nicholson Bailey host-parasitoid model
  • Weed-herbivore coupled model for an annual seedbanking plant from Buckley et al. 2005
  • Weed-herbivore model for a biennial seedbanking plant

Running

python -m generations.nicholson_bailey
python -m generations.buckley
python -m generations.biennial

Testing

./test.sh

This will run the unit tests. If you have pipenv, it will also run a number of other checks:

  • yapf: reformat the code automatically
  • mypy: check for runtime errors like misnamed imports or variables, or incompatible types
  • tox: run the unit tests against Python 2.7 and 3.7
  • coverage: report on lines that are not covered by unit tests

Uploading to PyPI

Install pipenv if you don't have it.

Run the tests one last time:

./test.sh

Build the distribution files:

pipenv run python3 setup.py sdist bdist_wheel

Upload using twine. It will prompt for your PyPI password:

pipenv run twine upload dist/*

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

generations-1.0.0.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

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

generations-1.0.0-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

Details for the file generations-1.0.0.tar.gz.

File metadata

  • Download URL: generations-1.0.0.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.7.0

File hashes

Hashes for generations-1.0.0.tar.gz
Algorithm Hash digest
SHA256 bb2bab95f56b9cacaee3340168e07c26afd3abc5e1110963e1f5162b2b671a7b
MD5 0f6be47162d2d600a66dc6b5d0342a8c
BLAKE2b-256 f7b6e4cf463cb3e63535067121d52192ce7da9451fb7417b872395a8eaaff146

See more details on using hashes here.

File details

Details for the file generations-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: generations-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 8.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.7.0

File hashes

Hashes for generations-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7ac7870cffa5dc9d672f22acb71867947975a96abf8e867040c2c5a83020928a
MD5 db215a3a1698d30e41faaf2476182695
BLAKE2b-256 6230ca1570c81e68c4acfe10d12f413cf41bf99c2178d279c596fe9daea001a7

See more details on using hashes here.

Supported by

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