question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

support routes with `None` orientation ports

See original GitHub issue

How can we support bundle routes with ports that have orientation=None ?

if __name__ == "__main__":
    import gdsfactory as gf

    c = gf.Component("pads_bundle_steps")
    pt = c << gf.components.pad_array(
        gf.partial(gf.components.pad, size=(30, 30)),
        orientation=None,
        columns=3,
        spacing=(50, 0),
    )
    pb = c << gf.components.pad_array(orientation=None, columns=1, rows=3)
    pt.move((500, 500))

    routes = gf.routing.get_bundle_from_steps_electrical(
        pt.ports,
        pb.ports,
        end_straight_length=60,
        separation=30,
        steps=[{"dy": -50}, {"dx": -100}],
    )

    for route in routes:
        c.add(route.references)

    c.show()

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
joamatabcommented, Sep 14, 2022

Amazing! Thank you Skandan

0reactions
joamatabcommented, Sep 14, 2022
Read more comments on GitHub >

github_iconTop Results From Across the Web

Routing — PHIDL documentation
By default, route functions such as route_sharp() and route_smooth() will connect one port to another with polygonal paths that are as wide as...
Read more >
vPC and Routing Protocols - Network Direction
A controversial topic; Can vPC exist with routing? ... There has been some confusion around the question; does vPC support routing?
Read more >
Cisco SD-WAN Routing Configuration Guide, Cisco IOS XE ...
Supported Protocols. This section explains the protocols supported for unicast routing. OMP Routing Protocol; BGP and OSPF Routing Protocols ...
Read more >
Achieve path-based routing on an Application Load Balancer
An Application Load Balancer allows you to create a listener with rules that forwards requests to target groups based on the URL.
Read more >
Configure Static Routing on Cisco ASA Firewall
Cisco ASA firewalls support both static and dynamic routing. ... I have diiferent internal VLAN (port)configure on the same switch (one for the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found