Usage examples for the DynamicalSystemFramework.
Live demo: https://grufoony.github.io/dsf-examples/, the outputs of every example, regenerated by CI.
The interactive routing page plans routes live in the browser with a JavaScript port of the dsf Router (1_routing/web/router.js), fed with the routing graph that 1_routing/export_router.py exports from dsf. CI checks that the port plans the same routes as dsf (ci/router_parity.mjs).
This project uses uv. To install requirements:
uv syncThen run a script from its own folder, e.g. cd 0_cartography && uv run cartography.py.
To lint and format with ruff on every commit, install the pre-commit hook once:
uv run pre-commit installOn every push and pull request, CI lints the code with ruff, runs every example, checks that the
results make sense, and, on main, publishes them to GitHub Pages. To do the same locally:
uv run ruff check . && uv run ruff format --check .
uv run ci/examples.py run # run all the examples in order
uv run ci/examples.py check # sanity checks on the results
uv run ci/examples.py site # build the website in _site/New examples must be added to the EXAMPLES list in ci/examples.py.