Make retry exports optional and report benchmark placement and selection
This commit is contained in:
parent
f247cff54a
commit
f6e7bac4c5
1 changed files with 78 additions and 20 deletions
|
|
@ -5,14 +5,11 @@ from __future__ import annotations
|
|||
from argparse import ArgumentParser
|
||||
from concurrent.futures import ProcessPoolExecutor
|
||||
from dataclasses import asdict, replace
|
||||
from hashlib import sha256
|
||||
from json import dumps, loads
|
||||
from pathlib import Path
|
||||
from time import perf_counter
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
from shapely import to_wkb
|
||||
|
||||
from inire import DiagnosticsOptions, route
|
||||
from inire.results import RouteMetrics
|
||||
from inire.tests.routing_corpus import (
|
||||
|
|
@ -22,6 +19,7 @@ from inire.tests.routing_corpus import (
|
|||
benchmark_weighted_length,
|
||||
native_verified_costs,
|
||||
profile_options,
|
||||
route_placement,
|
||||
select_cases,
|
||||
)
|
||||
from scripts.compare_topological_routing import _geometry_json
|
||||
|
|
@ -42,8 +40,7 @@ def _paths(results: dict[str, RoutingResult]) -> dict:
|
|||
"outcome": result.outcome,
|
||||
"reached_target": result.reached_target,
|
||||
"seed": [{"kind": type(move).__name__, **asdict(move)} for move in result.as_seed().segments],
|
||||
"effective_net": asdict(result.effective_net) if result.effective_net is not None else None,
|
||||
"physical_polygon_hashes": [sha256(wkb).hexdigest() for wkb in to_wkb(result.locked_geometry, byte_order=1)],
|
||||
**route_placement(result),
|
||||
"report": asdict(result.report),
|
||||
}
|
||||
for net_id, result in results.items()
|
||||
|
|
|
|||
Loading…
Reference in a new issue