Skip to content

DoRoutes 0.2.3

Advanced routing for GDSFactory / KFactory.

tldr

add_bundle_astar

add_bundle_astar(
    component: ProtoTKCell,
    ports1: list[PortLike],
    ports2: list[PortLike],
    spacing: Um,
    bend: KCellSpec,
    straight: KCellSpec,
    layers: Iterable[LayerLike],
    grid_unit: Int = 500,
) -> list[None]

Add a bundle route using the a-star algorithm.

Parameters:

Name Type Description Default
component ProtoTKCell

The component to add the route into.

required
ports1 list[PortLike]

the start ports

required
ports2 list[PortLike]

the end ports

required
spacing Um

the spacing between the waveguides in the bundle

required
bend KCellSpec

the bend-spec to create bends with

required
straight KCellSpec

the straight-spec to create straights with

required
layers Iterable[LayerLike]

the layers to avoid.

required
grid_unit Int

the discretization unit for the a-star algorithm.

500

Examples

Please check out the examples here