Closed simenmm closed 4 months ago
oh, yes, you need to sort the ports :)
or you can do
gf.routing.get_bundle_sbend(enforce_ports_ordering=False)
the problem is that get_ports_list is returning ports sorted clockwise
closing as fixed,
thank you for catching this Simen!
One of the port lists is reversed in the Sbend bundle example.
reversed(c2.get_ports_list(orientation=180))
needs to be wrapped withlist()
since it returns an iterator, which gets a bit ugly.c2.get_ports_list(orientation=180)[::-1]
may be the prettiest option.