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

Uploaded Source

Built Distribution

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

cafelytics-0.1.1-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

Details for the file cafelytics-0.1.1.tar.gz.

File metadata

  • Download URL: cafelytics-0.1.1.tar.gz
  • Upload date:
  • Size: 15.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.9.6

File hashes

Hashes for cafelytics-0.1.1.tar.gz
Algorithm Hash digest
SHA256 f84983a53c63922119a7341764130823f58acf399172df9b856af4178101b0d2
MD5 10d299c66895e6e677c318f405103c14
BLAKE2b-256 9ab898f1d9dc8f9f8921bfc78839dea7576a1d1908dcfe321a594bd39d63bf67

See more details on using hashes here.

File details

Details for the file cafelytics-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: cafelytics-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 9.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.9.6

File hashes

Hashes for cafelytics-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d03da1de4f81e709d60e47dfd24a0696a95fe3132fe09c5142ab223bb163f4ef
MD5 399ef51cc2fc83ac9ee157bccf907cd3
BLAKE2b-256 59ff477612e5a582b3b51b7fd291c95a969e65e2ad2a39d3e42c319e198a6f89

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