Keep routing and export verification snapshots read-only
This commit is contained in:
parent
9ba1dc048a
commit
8e8c8a7ba0
1 changed files with 158 additions and 19 deletions
|
|
@ -26,7 +26,7 @@ The fields below appear in constructor order. Use one layout unit for coordinate
|
|||
| `bounds` | Required | Finite board rectangle as `(xmin, ymin, xmax, ymax)`, with each minimum below its maximum. |
|
||||
| `nets` | `()` | Sequence of `NetSpec` objects with unique IDs. Duplicate IDs raise `ValueError`. |
|
||||
| `static_obstacles` | `()` | Valid, nonempty Shapely `Polygon` objects that define keepouts. |
|
||||
| `initial_paths` | Empty mapping | Net IDs mapped to `PathSeed` objects. |
|
||||
| `initial_paths` | Empty mapping | A read-only snapshot of net IDs mapped to `PathSeed` objects. Supply a new mapping to change seeds. |
|
||||
| `clearance` | `2.0` | Finite, nonnegative spacing required between distinct nets and between a net and a keepout. At zero clearance, distinct nets must still be disjoint, including at vertices. Boundary contact with a keepout is allowed. |
|
||||
| `safety_zone_radius` | `0.0021` | Tolerance for small obstacle intersections at a move's endpoints during search. |
|
||||
| `self_clearance` | `0.0` | Optional spacing within one net. Applies between components when the intervening centerline is at least this long. Adjacent joins and components immediately on either side of one bend are exempt. Unintended contact is always checked. |
|
||||
|
|
@ -40,7 +40,7 @@ The fields below appear in constructor order. Use one layout unit for coordinate
|
|||
|
||||
| Value | Read it for |
|
||||
| --- | --- |
|
||||
| `RoutingRunResult.results_by_net` | A mapping from net ID to `RoutingResult`. |
|
||||
| `RoutingRunResult.results_by_net` | A read-only mapping from net ID to `RoutingResult`. Use `dict(run.results_by_net)` to make an editable copy. |
|
||||
| `RoutingResult.is_valid` and `outcome` | `is_valid` is true when the outcome is `completed`. Read `outcome` to distinguish success, a failed geometry check (`colliding`), a path that stopped short (`partial`), or an empty path (`unroutable`). |
|
||||
| `RoutingResult.requested_net` and `effective_net` | The net as supplied and the net used by the worker, including resolved headings. |
|
||||
| `RoutingResult.path` | Ordered path components from the source to the last reached state. An unroutable result has an empty path. |
|
||||
|
|
|
|||
Loading…
Reference in a new issue