Remove hooks for archived early incumbent experiments
This commit is contained in:
parent
64e103b59e
commit
07a2c0e167
1 changed files with 6 additions and 77 deletions
|
|
@ -369,14 +369,12 @@ class _AutomaticRun:
|
|||
break
|
||||
return trials
|
||||
|
||||
def _incumbent_trials(self, options: RoutingOptions, best: Trial, target: int, *, retry_disconnected: bool = True) -> list[Trial]:
|
||||
def _incumbent_trials(self, options: RoutingOptions, best: Trial, target: int) -> list[Trial]:
|
||||
problem = self.problem
|
||||
retained = {net_id: best.run.results_by_net[net_id] for net_id in best.valid_costs}
|
||||
with self._time("plan", policy="incumbent-retry"):
|
||||
blocked = _disconnected_nets(problem, self.board, options, retained)
|
||||
if blocked:
|
||||
if not retry_disconnected:
|
||||
return []
|
||||
seeds = {net_id: result.as_seed() for net_id, result in retained.items()}
|
||||
run = self._run(replace(problem, initial_paths=seeds), options=options, policy="incumbent-retry")
|
||||
stage = RoutingStage(
|
||||
|
|
|
|||
Loading…
Reference in a new issue