Skip to main content

simpest

simpest logo

PyPI License: MIT

simpest is a Python package for coupled crop growth and plant disease/pest simulation. It runs a SIMPLACE/Lintul5 crop growth scenario, converts the daily crop trajectory into the inputs a disease and fungicide simulation model expects, and runs that model — optionally calibrating selected parameters against field reference observations — to produce daily and seasonal outputs. The disease/pest simulation logic is inspired by the FraNchEstYN model.

What it does

  • Runs SIMPLACE crop growth scenarios and reads the resulting daily trajectory.
  • Converts SIMPLACE weather, management, and crop-model outputs into the format the disease/fungicide simulation expects.
  • Simulates daily crop growth, epidemiological (SEIR) disease dynamics, and fungicide efficacy, coupled through four damage mechanisms (light interception loss, radiation-use-efficiency reduction, assimilate loss, and accelerated senescence).
  • Calibrates selected crop and disease parameters with a multi-start Nelder–Mead search against reference observations.
  • Exports daily simulation records and per-season summaries (AUDPC, yield loss, peak severity, weather aggregates).

Core modules live under simpest/models.

Installation

pip install simpest

For an editable, development install:

git clone https://github.com/KaziJahidurRahaman/simpest
cd simpest
pip install -e .

Running the crop growth stage additionally requires a SIMPLACE installation and the simplace Python package (a Java/JVM bridge via jpype); see Installation for details.

Quickstart

The disease/fungicide simulation stage takes plain pandas DataFrames, so it can be exercised on its own once you have weather, management, crop-model, and reference data available (as CSVs or otherwise):

import pandas as pd
from simpest.models.franchestyn import FranchestynConfig, run_franchestyn

weather_df = pd.read_csv("weather.csv")
management_df = pd.read_csv("management.csv")
crop_model_df = pd.read_csv("crop_model.csv")
ref_df = pd.read_csv("reference.csv")

config = FranchestynConfig(
    crop_type="wheat",
    disease_type="septoria",
    fungicide_type=None,
    site="indiana",
    variety="Generic",
    disease="thisDisease",
    is_calibration=False,
)

result = run_franchestyn(
    start_year=2018,
    end_year=2019,
    config=config,
    weather_df=weather_df,
    management_df=management_df,
    crop_model_df=crop_model_df,
    ref_df=ref_df,
)
print(result["outputs"]["summary"])

For the full pipeline — running SIMPLACE first and converting its output into the DataFrames above — see the example notebooks at docs/examples/1_Run Simpest.ipynb and docs/examples/2_Plot.ipynb.

Directory layout

simpest/
|- docs/                # MkDocs documentation site and example notebooks
|- simpest/
|  |- common.py
|  |- simpest.py
|  |- models/
|     |- simplace.py         # SIMPLACE crop growth integration
|     |- franchestyn.py      # disease/fungicide simulation entry points
|     |- fr_runner.py        # end-to-end daily simulation loop
|     |- fr_crop_model.py    # daily crop growth + disease damage mechanisms
|     |- fr_disease_model.py # SEIR disease model
|     |- fr_fungicide_model.py
|     |- fr_optimizer.py     # multi-start Nelder-Mead calibration
|     |- fr_data.py          # input/output/parameter data structures
|     |- fr_*_reader.py      # weather, parameter, and reference data readers
|- tests/
|- mkdocs.yml
|- pyproject.toml
|- README.md

Documentation

Full documentation, including the API reference, is published at https://KaziJahidurRahaman.github.io/simpest. Locally:

Contributing

Contributions are welcome — see Contributing for how to set up a development environment and the pull request process.

Project

Metadata

Release files for simpest 0.0.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for simpest 0.0.7
File Size Uploaded Provenance Actions
simpest-0.0.7.tar.gz 13.3 MB Without provenance Details for simpest-0.0.7.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for simpest 0.0.7
File Interpreter ABI Platform Actions
simpest-0.0.7-py2.py3-none-any.whl Python 3, Python 2 none any Details for simpest-0.0.7-py2.py3-none-any.whl

Total release size: 13.4 MB

Release files / simpest-0.0.7.tar.gz

Download URL simpest-0.0.7.tar.gz
Size 13.3 MB
Tags Source
SHA-256 checksum
How to use checksums
c746dd3183a7475c7794c6f87f11afe8d87e7852daa56e1aaf5a56a1a76314cf
BLAKE2b-256 checksum
How to use checksums
357b8688d9a9776666c24282ec2258a675152cf5412126ab2e982804dffeafb6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.6

Release files / simpest-0.0.7-py2.py3-none-any.whl

Download URL simpest-0.0.7-py2.py3-none-any.whl
Size 60.2 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
862a6669add15089672a0a67470235c9e5000dcaa54244f4595ace025b77da62
BLAKE2b-256 checksum
How to use checksums
314504c40351ec00095c68a36a2acc1021e1979a6c45185be3bcba0f23896422
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.6

Security for simpest 0.0.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.7 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page