Validate routing options and match custom S-bend widths consistently

This commit is contained in:
Jan Petykiewicz 2026-11-28 20:03:41 -08:00
commit f9ba5669dd

View file

@ -220,7 +220,8 @@ def plan_ordered_bundle(problem: RoutingProblem, search: SearchOptions, *, infer
bend = min(search.bend_radii, default=0.0)
if (
not isfinite(bend) or bend <= 0 or bend != int(bend) or bend not in search.sbend_radii
or physical_geometry != "arc" or search.sbend_outlines
or physical_geometry != "arc"
or search.has_applicable_sbend_outline(net.width for net in problem.nets)
):
raise ValueError("Bundle routing needs a common integer radius for circular bends and S-bends")
radius = int(bend)