Skip to main content

Example python package for boids simulation

Project description

boids

Example python package simulating boids: https://en.wikipedia.org/wiki/Boids. This package serves as an example for researchers on how to turn their python code into a package.

Boids evolution

Installation

The package is published to PyPI and can be installed with

pip install boids

If you want the development version you must first clone the repo to your local machine, then install the project in development mode:

git clone https://github.com/gregordecristoforo/boids.git
cd boids
python -m pip install -e .

Usage

Import and run the run_simulation() function:

import boids

boids.run_simulation()

You can overrite the default arguments as you wish (see the run_simulations() docstring for a list of all input arguments):

boids.run_simulation(num_boids=50, alignment=0.03, separation=0.03, cohesion=0.02)

Reproducibility

In order to guarantee that this project remains reproducible we include a environment.yml file specifying the exact version of all dependencies. Recreate a conda environment with these packages by:

conda env create -f environment.yml

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

boids-0.2.1.tar.gz (1.1 MB view hashes)

Uploaded Source

Built Distribution

boids-0.2.1-py2.py3-none-any.whl (5.9 kB view hashes)

Uploaded Python 2 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