Wave-router: Auto-router for photonic and RF waveguides
- Python 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
Use verified terminal and column constructions, cheaper straight profiles, and tighter cost bounds to reduce routing work. Reuse geometry in clearance checks and tuning while retaining verified coverage and timing constraints. Report median routing time times squared cost in the benchmark tools and record the comparisons and regression coverage. |
||
| docs | ||
| examples | ||
| inire | ||
| scripts | ||
| .gitignore | ||
| .python-version | ||
| DOCS.md | ||
| LICENSE.md | ||
| pyproject.toml | ||
| README.md | ||
| uv.lock | ||
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)
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.
