Verify route continuity and simplify automatic search setup

This commit is contained in:
Jan Petykiewicz 2026-11-27 15:21:37 -08:00
commit def1e4ea1d

View file

@ -128,7 +128,7 @@ def bundle_turnaround_candidates(
path = materialize_path_seed(
proposal.initial_paths[net.net_id], start=net.start, net_width=net.width, search=search, clearance=problem.clearance
)
return tuple((round(x), round(y)) for x, y in export_waypoints(path))
return tuple((round(x), round(y)) for x, y in export_waypoints(path or ()))
shelf_points, return_points = points_for(shelf), points_for(returning)
horizontals = [i for i, (a, b) in enumerate(pairwise(shelf_points)) if a[1] == b[1]]