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.
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
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 Distribution
Built Distribution
File details
Details for the file boids-0.2.1.tar.gz
.
File metadata
- Download URL: boids-0.2.1.tar.gz
- Upload date:
- Size: 1.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.31.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9f4b9e3f10d76170f66ecc313ca721a3ede33272a0f36c6c48ee12ca59260500 |
|
MD5 | 3140750b88fab879b7790c57e9a29bfc |
|
BLAKE2b-256 | 2e9fa3f23cab8e2f8774b253d5723da7f92627d0e52cb1402ba3086202a1b7c2 |
File details
Details for the file boids-0.2.1-py2.py3-none-any.whl
.
File metadata
- Download URL: boids-0.2.1-py2.py3-none-any.whl
- Upload date:
- Size: 5.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.31.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 069f8011e60b25596708c76f3a012ef21b8253433ffe24a68e12269ea7c1103c |
|
MD5 | 7e37bed6f9860f122d7baf0f8cfb3b82 |
|
BLAKE2b-256 | e19b6150584bd6e1930b330b58ad05a73fdc0da2191cf48f7433cd30c9912a30 |