inire/inire
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-11-29 23:29:31 -08:00
..
geometry Refine routing geometry checks and streamline documentation 2026-11-29 23:12:28 -08:00
router Refine routing geometry checks and streamline documentation 2026-11-29 23:12:28 -08:00
tests Keep fabrication helpers in tests and simplify documentation links 2026-11-29 23:29:31 -08:00
utils Bound search memory and verify process geometry before layout export 2026-11-28 20:42:25 -08:00
__init__.py Refine routing geometry checks and streamline documentation 2026-11-29 23:12:28 -08:00
_snapshot.py Preserve structured serialization of routing snapshots 2026-11-29 16:37:28 -08:00
constants.py lots more refactoring 2026-03-30 19:51:37 -07:00
LICENSE.md initial commit 2026-03-06 18:48:04 -08:00
model.py Refine routing geometry checks and streamline documentation 2026-11-29 23:12:28 -08:00
README.md initial commit 2026-03-06 18:48:04 -08:00
results.py Refine routing geometry checks and streamline documentation 2026-11-29 23:12:28 -08:00
seeds.py Verify route continuity and simplify automatic search setup 2026-11-27 15:21:37 -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 ..

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.