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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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