Metadata-Version: 2.5
Name: sadiepy
Version: 0.0.1.dev0
Summary: Physics-based prediction of wave damping by vegetation, with tradespace tools for designing and analysing flume experiments.
Project-URL: Repository, https://github.com/malbye/sadiepy
Project-URL: Issues, https://github.com/malbye/sadiepy/issues
Author-email: Mallory Byers <mgbyers@ucsc.edu>
License-Expression: MIT
License-File: LICENSE
Keywords: coastal engineering,ecohydraulics,flume experiments,vegetation,wave attenuation
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: Intended Audience :: Science/Research
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Scientific/Engineering :: Physics
Classifier: Typing :: Typed
Requires-Python: >=3.10
Requires-Dist: numpy>=1.24
Requires-Dist: scipy>=1.10
Provides-Extra: dev
Requires-Dist: mypy>=1.11; extra == 'dev'
Requires-Dist: pytest>=8; extra == 'dev'
Requires-Dist: ruff>=0.6; extra == 'dev'
Description-Content-Type: text/markdown

# SADIE: Simulation, Analysis, and Design In Ecohydraulics

<!-- Badges to add once each exists: PyPI version, Python versions, documentation, DOI (Zenodo). -->
[![CI](https://github.com/malbye/sadiepy/actions/workflows/ci.yml/badge.svg)](https://github.com/malbye/sadiepy/actions/workflows/ci.yml)
[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/malbye/sadiepy/blob/main/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).

Repository: [https://github.com/malbye/sadiepy](https://github.com/malbye/sadiepy)

## Installation

SADIE requires Python 3.10&ndash;3.12. Install the latest release from PyPI:
```shell
pip install sadiepy
```

### Development Installation

To work with the source code, clone the repository and install the `sadiepy` library in "editable" mode:
```shell
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)

## 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):
```shell
pytest
```

Run a subset of tests by file, or by a keyword expression with `-k`:
```shell
pytest tests/test_package.py -k "version"
```

### Code Style

This project uses ruff for linting and formatting, applied from the project root:
```shell
ruff check .
ruff format .
```

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

## License

This project is licensed under the MIT License &mdash; see
[LICENSE](https://github.com/malbye/sadiepy/blob/main/LICENSE) for details.

## Citation

If you use SADIE in your research, please cite it using the metadata in
[CITATION.cff](https://github.com/malbye/sadiepy/blob/main/CITATION.cff).

## Contact

Mallory Byers <mgbyers@ucsc.edu>

## Acknowledgements

Current Project Team
 * Mallory Byers, Independent Researcher, University of California, Santa Cruz
