Refactor routing internals and archive retry benchmarks
This commit is contained in:
parent
a8720ac8c9
commit
ea5cfe7f31
1 changed files with 3481 additions and 2583 deletions
|
|
@ -11,10 +11,10 @@ from shapely.geometry import box
|
|||
|
||||
from inire.constants import TOLERANCE_LINEAR
|
||||
from inire.geometry.collision import RoutingWorld
|
||||
from inire.geometry.primitives import port_local_coordinates
|
||||
from inire.geometry.sbend import exact_sbend_spans
|
||||
from inire.model import resolve_bend_geometry
|
||||
from inire.results import RoutingResult
|
||||
from inire.router._columns import _exact_spans
|
||||
from inire.router._routing_policy import _local_delta
|
||||
from inire.router._seed_materialization import materialize_path_seed
|
||||
from inire.seeds import Bend90Seed, PathSeed, SBendSeed, StraightSeed
|
||||
|
||||
|
|
@ -80,7 +80,7 @@ def _candidate_jogs(
|
|||
continue
|
||||
# Move the middle of the jog between two independently positioned
|
||||
# turn lanes. The S-bend stays away from the terminal access cutouts.
|
||||
for offset, span in reversed(tuple(_exact_spans(radius).items())):
|
||||
for offset, span in reversed(tuple(exact_sbend_spans(radius).items())):
|
||||
if span > reach:
|
||||
continue
|
||||
available = reach - span
|
||||
|
|
@ -200,7 +200,7 @@ def short_shift_seed_set(problem: RoutingProblem, search: SearchOptions, score:
|
|||
return None
|
||||
if any(net.start.r != net.target.r for net in problem.nets):
|
||||
return None
|
||||
deltas = [_local_delta(net) for net in problem.nets]
|
||||
deltas = [port_local_coordinates(net.start, net.target.x, net.target.y) for net in problem.nets]
|
||||
if any(forward <= 0 for forward, _ in deltas) or not any(offset for _, offset in deltas):
|
||||
return None
|
||||
seeds_by_net = [tuple(_shift_seeds(int(forward), int(offset), search)) for forward, offset in deltas]
|
||||
|
|
|
|||
Loading…
Reference in a new issue