Commit 57c3e1b
committed
Improve sankey logging.
Running the sankey_rankine example with an info-level logger on emits a
bunch of logs of the form
> The scaled sum of the inputs is 0.039204.
> This may cause poor layout.
> Consider changing the scale so that the scaled sum is approximately 1.0.
but they are clearly intended as such (some flows are just very small,
and they render fine). Remove that log.
There are also some logs of the form
> The sum of the flows is nonzero (-0.002000).
> Is the system not at steady state?
Improve them by including the patchlabel, so that one can more easily
figure out the potentially incorrect flow values (one now gets
> The sum of the flows is nonzero (-0.002000; patchlabel='\n\nOpen\nheater'); is the system not at steady state?
) (as for the actual values in the example, I guess someone should check
the reference the data comes from).1 parent 4432fda commit 57c3e1b
2 files changed
Lines changed: 5 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
8 | | - | |
| 6 | + | |
9 | 7 | | |
| 8 | + | |
10 | 9 | | |
11 | 10 | | |
12 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
464 | 464 | | |
465 | 465 | | |
466 | 466 | | |
467 | | - | |
468 | | - | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
469 | 470 | | |
470 | 471 | | |
471 | 472 | | |
472 | | - | |
473 | | - | |
474 | | - | |
475 | | - | |
476 | | - | |
477 | | - | |
478 | | - | |
479 | | - | |
480 | | - | |
481 | | - | |
482 | 473 | | |
483 | 474 | | |
484 | 475 | | |
| |||
0 commit comments