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.

Offsets generate route errors

See original GitHub issue

get_bundle_waypoints tries to reverse the offset between ports (line 243, 244):

if start_angle in [90, 270]: offsets_start = [-_d for _d in offsets_start]

When routing from a set of 270-degree ports to a set of 0-degree ports to their SW, the router throws a route error. Below is a minimum example of this behavour:

` 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=270,
    columns=3,
    spacing=(50, 0),
)
pb = c << gf.components.pad_array(orientation=0, columns=1, rows=3)
pt.move((500, 500))

routes = 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()`

This can be fixed by removing the 270 from the list: if start_angle in [90]: offsets_start = [-_d for _d in offsets_start]

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
joamatabcommented, May 19, 2022

it works for all the tests cases we have, im releasing 5.7.0 with all your new improvements, thank you Thomas!

0reactions
joamatabcommented, May 19, 2022

just released 5.7.0

Read more comments on GitHub >

github_iconTop Results From Across the Web

Routing Offsets - YouTube
Detailend introduction to the Routing Offset strategy in EnRoute.
Read more >
Solved: offset-list failing - Cisco Community
I am attempting to apply an inbound offset list to my EIGRP setup. I create the ACL but when I try to apply...
Read more >
Error: "Illegal offset type", when redirect()->route() - Laracasts
Before redirecting to the Controller it throws the following error: Illegal offset type. I checked the routes and it exist: Copy Code
Read more >
Laravel Undefined Offset: 1 - cause by routing - Stack Overflow
How do I create a RESTful API in Laravel to use in my BackboneJS app ... I got same error when accessing object...
Read more >
offset points from a line - Esri Community
If so, use Linear Referencing. Use Create Routes Features on your lines. The value for the position along the line will be 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