Offsets generate route errors
See original GitHub issueget_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:
- Created a year ago
- Reactions:1
- Comments:5 (5 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
it works for all the tests cases we have, im releasing 5.7.0 with all your new improvements, thank you Thomas!
just released 5.7.0