Commit 219faa4
committed
[#1397] make message flow docs helpers robust to optional Graphviz
The scenario message-flow SVGs are documentation artifacts, so normal
scenario tests should not fail just because the Graphviz `dot` executable is
not installed. Make `saveScenarioGraphvizFigure()` return quietly when
Graphviz is unavailable, while preserving SVG generation in docs jobs where
Graphviz is installed.
Also install the recorder source hook at `SimulationBaseClass` import time.
This lets the message-flow graph recover recorder connections even when a
recorder is created before the `SimBaseClass` instance.1 parent c0f9f95 commit 219faa4
2 files changed
Lines changed: 23 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
553 | 553 | | |
554 | 554 | | |
555 | 555 | | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
556 | 559 | | |
557 | 560 | | |
558 | 561 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
305 | 305 | | |
306 | 306 | | |
307 | 307 | | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
308 | 328 | | |
309 | 329 | | |
310 | 330 | | |
| |||
0 commit comments