Wave-router: Auto-router for photonic and RF waveguides
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Jan Petykiewicz 63acb94642 Fix routing correctness and bound optional routing work
Check physical keepout clearance, retain useful partial paths, and account for all pair repair searches. Verify complete seeds early and recover narrower corridors when shared guides are blocked.

Keep frontier diagnostics outside routing decisions and bound their work by the worker deadline. Correct benchmark scaling and scenario validation, and update the guides and release metadata.
2026-12-02 17:16:34 -08:00
archive/routing Fix routing correctness and bound optional routing work 2026-12-02 17:16:34 -08:00
docs Fix routing correctness and bound optional routing work 2026-12-02 17:16:34 -08:00
examples Keep fabrication helpers in tests and simplify documentation links 2026-11-29 23:29:31 -08:00
inire Fix routing correctness and bound optional routing work 2026-12-02 17:16:34 -08:00
plans Fix routing correctness and bound optional routing work 2026-12-02 17:16:34 -08:00
scripts Fix routing correctness and bound optional routing work 2026-12-02 17:16:34 -08:00
.gitignore Separate user guides, benchmarks, and routing internals 2026-11-26 21:14:29 -08:00
.python-version Initial buildout 2026-03-07 08:26:29 -08:00
DOCS.md Keep fabrication helpers in tests and simplify documentation links 2026-11-29 23:29:31 -08:00
LICENSE.md initial commit 2026-03-06 18:48:04 -08:00
pyproject.toml Fix routing correctness and bound optional routing work 2026-12-02 17:16:34 -08:00
README.md Fix routing correctness and bound optional routing work 2026-12-02 17:16:34 -08:00
uv.lock Require triangulation and simplify automatic routing 2026-12-01 22:30:29 -08:00

inire

Inire routes photonic and RF layouts with straights, 90-degree bends, and S-bends.

Install

From a checkout with Python 3.11 or newer, run pip install .. Inire requires Shapely 2.1 or newer and checks at import that Shapely is linked against GEOS 3.10 or newer.

Route a net

from inire import (
    NetSpec, Port, RoutingProblem,
    route,
)

start = Port(50, 100, 0)
target = Port(250, 100, 0)
net = NetSpec("input", start, target)
problem = RoutingProblem(
    bounds=(0, 0, 1000, 1000),
    nets=(net,),
    clearance=2,
)

run = route(problem)
result = run.results_by_net["input"]
if result.is_valid:
    print(result.report.total_length)
else:
    print(result.outcome)

A short solid waveguide connects the start at (50, 100) and target at (250, 100). Both port arrows point east.

The example prints 200.0. Heading 0 is east at both ports.

Route your own layout

Develop Inire

License

Inire is distributed under the GNU Affero General Public License v3.