This project aims to create a unified methodology for consequence modeling that seamlessly integrates both coastal and inland approaches, providing adaptable and efficient solutions for a wide range of scenarios. For more details on this project, please view our Consequences Solution documentation.
Install uv if you haven't already:
Linux/macOS:
curl -LsSf https://astral.sh/uv/install.sh | shWindows PowerShell:
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"For other installation methods, see the uv documentation.
- Create a Python virtual environment and install dependencies
uv sync --all-packages- Run tests
uv run pytest -q- Run the local
mkdocsserver.
uv run mkdocs serve
To set up a pre-commit hook for mdformat to automatically format Markdown files within the repository:
(venv-inland) $ pre-commit install
You can run the pytest tests from the command line to direct where to put the temporary files that it generates when the test are run.
uv run pytest -m manual tests/test_inland_flood_analysis.py --basetemp=outputsAfter that is run, you can inspect the generated files in the outputs folder for each test and open the DuckDB file using the DuckDB CLI.
uv run duckdb -ui .\outputs\test_manual_calculate_lossescurrent\test_duwamish.duckdb