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

@ -611,7 +611,10 @@ class _AutomaticRun:
trials: list[Trial] = []
if not self.problem.nets or options.search.node_limit <= 0 or options.congestion.max_iterations <= 0:
self._lattice_fallback(trials, options, "No automatic search requested")
elif options.search.sbend_outlines or isinstance(proxy, shapely.Polygon) or physical != "arc":
elif (
isinstance(proxy, shapely.Polygon) or physical != "arc"
or options.search.has_applicable_sbend_outline(net.width for net in self.problem.nets)
):
self._lattice_fallback(trials, options, "Custom bend geometry uses lattice routing")
else:
with self._time("plan"):