Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

SADIE: Simulation, Analysis, and Design In Ecohydraulics

PyPI CI Documentation License

Status: early development (pre-release).

Physics-based prediction of wave damping by vegetation, with tradespace tools for designing and analysing flume experiments.

SADIE (sadiepy) predicts wave attenuation through patches of coastal vegetation (mangroves, salt marsh, seagrass, kelp, or user-defined) described as a vertical stack of layers, using linear wave theory and the Dalrymple et al. (1984) energy-dissipation framework. It supports flume experiment design before an experiment (tradespace analysis of candidate designs) and data analysis after it (reflection separation, damping-factor fitting, and drag-coefficient back-calculation).

Documentation: https://sadiepy.readthedocs.io

Repository: https://github.com/malbye/sadiepy

Installation

SADIE requires Python 3.10–3.12. Install the latest release from PyPI:

pip install sadiepy

Development Installation

To work with the source code, clone the repository and install the sadiepy library in "editable" mode:

git clone https://github.com/malbye/sadiepy.git
cd sadiepy
pip install -e .

Note: the following optional dependencies are available with bracket notation:

  • pip install -e ".[dev]": for development (unit testing, linting, and type checking)
  • pip install -e ".[examples]": for running the example notebooks in docs/examples
  • pip install -e ".[docs]": for building the documentation site (includes examples)

Getting Started

New to SADIE? Start with the two example notebooks in docs/examples, in order:

  1. 01 – Tutorial: how SADIE works: a slow, step-by-step introduction to every object (water, waves, vegetation layers, drag laws), how to run a calculation, how to read the result, and what the warnings and error messages mean.
  2. 02 – A tour of SADIE: a visual, plain-English overview of everything SADIE can currently do, with larger examples and figures.

To run them yourself, install the examples extra (pip install -e ".[examples]") and open them in Jupyter.

A minimal example:

import sadiepy as sd

wave = sd.RegularWave(H=0.08, T=1.4, depth=0.4)  # height (m), period (s), depth (m)
veg = sd.presets.zhang2023("M3")  # 1:10 mangrove model, Zhang et al. (2023)
res = sd.propagate(wave, veg, patch_length=2.0, drag=1.0)
print(res.beta, res.H)  # damping factor (1/m), heights (m)

Development Tools

Development tools are applicable when working with the source code.

Unit Tests

Run unit tests with pytest (installed with the dev optional dependencies):

pytest

Run a subset of tests by file, or by a keyword expression with -k:

pytest tests/test_package.py -k "version"

Documentation

Build the documentation site (Sphinx; this also runs the example notebooks in docs/examples) from the project root with:

sphinx-build -b html docs docs/_build/html

then open docs/_build/html/index.html.

Code Style

This project uses ruff for linting and formatting, applied from the project root:

ruff check .
ruff format .

Type checking uses mypy in strict mode (configured in pyproject.toml):

mypy

Releasing

Releases are made from GitHub; PyPI is updated automatically. Bump version in pyproject.toml and add a CHANGELOG.md entry (merged through a pull request), then publish a GitHub release with the tag v<version> (e.g. v0.1.0). The Release workflow checks that the tag matches the version, runs the tests, builds the package and uploads it to PyPI (trusted publishing).

License

This project is licensed under the MIT License — see LICENSE for details.

Citation

If you use SADIE in your research, please cite it using the metadata in CITATION.cff.

Contact

Mallory Byers mgbyers@ucsc.edu

Acknowledgements

Current Project Team

  • Mallory Byers, Independent Researcher, University of California, Santa Cruz

Metadata

Release files for sadiepy 0.0.2.dev0

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

Source distribution (sdist)

Source distribution for sadiepy 0.0.2.dev0
File Size Uploaded Provenance Actions
sadiepy-0.0.2.dev0.tar.gz 1.1 MB With provenance Details for sadiepy-0.0.2.dev0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sadiepy 0.0.2.dev0
File Interpreter ABI Platform Actions
sadiepy-0.0.2.dev0-py3-none-any.whl Python 3 none any Details for sadiepy-0.0.2.dev0-py3-none-any.whl

Total release size: 1.1 MB

Release files / sadiepy-0.0.2.dev0.tar.gz

Download URL sadiepy-0.0.2.dev0.tar.gz
Size 1.1 MB
Tags Source
SHA-256 checksum
How to use checksums
a7e0d1e31868afc6b566e7706bea391aebece2b8ba7319a50654ef7456357dd7
BLAKE2b-256 checksum
How to use checksums
92cb395ee5e9f22f0ec3a5cbcc7ed4ad6b7ceeb84b0690d8bc2bf2860bfff13e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

Release files / sadiepy-0.0.2.dev0-py3-none-any.whl

Download URL sadiepy-0.0.2.dev0-py3-none-any.whl
Size 34.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ab96395f92a5e3df1a81208e183352fb5616c354c7bf0ce6f4b0242f14e7e41e
BLAKE2b-256 checksum
How to use checksums
315787ad99b4311ad15a61de708736521137d60d62759b229141fc5b546aafbd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

Security for sadiepy 0.0.2.dev0

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for sadiepy-0.0.2.dev0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

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.

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