Commit 967eb7b
committed
fix(perturbation-sim): address Codex P2 review on #504
P2-1 (Cargo.toml): the optional ndarray dep was a PATH dep — Cargo reads the
path manifest at resolution, so a clean checkout without ../../../ndarray failed
even with ndarray-simd OFF, breaking the zero-dep default. Switched to the GIT
source (helix pattern): it resolves remotely and is only fetched/built when the
feature activates it. Verified: default `cargo test` now resolves the git dep
without any local sibling — 49 tests pass.
P2-2 (cascade.rs): edge_field recorded the all-lines BASE flow for lines that
trip in later rounds, underreporting redistribution-driven trips (a line with
~0 base flow that trips on a large redistributed flow showed ~0 footprint). Now
capture trip_flow[e] = the current-round flow at the round each line trips
(seed/survivors default to base); edge_field for a tripped line uses that
overload. New regression test round_trip_edge_field_is_the_overload_not_base
asserts a round-≥1 trip's edge_field exceeds its limit.
49 tests pass; clippy -D warnings clean; fmt clean.1 parent b6f4559 commit 967eb7b
3 files changed
Lines changed: 46 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
28 | 30 | | |
29 | 31 | | |
30 | 32 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
115 | 119 | | |
116 | 120 | | |
117 | 121 | | |
| |||
149 | 153 | | |
150 | 154 | | |
151 | 155 | | |
| 156 | + | |
152 | 157 | | |
153 | 158 | | |
154 | 159 | | |
| |||
159 | 164 | | |
160 | 165 | | |
161 | 166 | | |
162 | | - | |
| 167 | + | |
163 | 168 | | |
164 | 169 | | |
165 | 170 | | |
| |||
229 | 234 | | |
230 | 235 | | |
231 | 236 | | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
232 | 269 | | |
233 | 270 | | |
234 | 271 | | |
| |||
0 commit comments