Skip to main content

Open-Source Agricultural Simulation for coffee cooperatives

Project description

PyPI Test Actions Status Build Actions Status Publish Actions Status Documentation Status Code Style: black Coverage Status Total Downloads

cafélytics ☕️

A basic simulation of a coffee operation. Please pardon the mess as this is a work in progress. This is a model that enables forecasting and experimentation under uncertainty, with the goal of steady year-over-year agricultural yields. It can help address questions such as:

  • when should I expand / how much?

  • what will the impacts of various crop diversification strategies be?

  • how can I plan around disaster recovery and mitigation of lost income?

  • what would cooperative-wide yields look like if more farmers joined? what about if some left?

usage (python cli)

The dataset provided can be used for forecasting with

make run

which is equivalent to

python3 simulate.py --farm data/fakeData.csv --years 75 --output testNewFarm.png

and will output this plot, representing the outputs of a collective of farmers over a seventy-five year time span:

https://user-images.githubusercontent.com/40366263/126934177-7353103f-bd90-4a7a-9085-f409a69d1b66.png

Some farmers who joined the cooperative had trees that were already very mature, so this simulation starts back in 1991 to show their hypothetical contributions towards the total yield of the group (in other words, their membership start date is not considered as a factor in this simulation at this time).

contributing

Contributions are welcome. There are many aspects of this project to improve, please see CONTRIBUTING.md for a list of places to start. You may also raise an issue if you have questions or suggestions about this code.

license

This software is released as-is, with no guarantee nor warranty. For more details, please see LICENSE.txt.

demo

Try it in your browser!

Launch Binder

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

cafelytics-0.1.1.tar.gz (15.8 kB view hashes)

Uploaded Source

Built Distribution

cafelytics-0.1.1-py3-none-any.whl (9.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