Commit 3824de8
Round 11: summary() footer branches on inference mode
P2 fix: summary() was unconditionally printing "dCDH analytical CI
is conservative under Assumption 8" even when n_bootstrap > 0 and
the displayed p_value / conf_int were bootstrap-based. The footer
now branches on bootstrap_results: when bootstrap is active, it
prints "p-value and CI are multiplier-bootstrap percentile inference
(N iterations, weight_type weights)"; when analytical, it keeps the
original conservative-CI note.
Added test assertions pinning both paths:
- test_summary_formats_without_error (analytical mode): asserts
"analytical CI is conservative" is present and "multiplier-
bootstrap" is absent
- test_bootstrap_p_value_and_ci_propagated_to_top_level (bootstrap
mode): asserts "multiplier-bootstrap percentile inference" is
present and "analytical CI is conservative" is absent
111 tests still pass; black, ruff clean.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 819ba57 commit 3824de8
2 files changed
Lines changed: 20 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
520 | 520 | | |
521 | 521 | | |
522 | 522 | | |
523 | | - | |
524 | | - | |
525 | | - | |
526 | | - | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
527 | 535 | | |
528 | 536 | | |
529 | 537 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1043 | 1043 | | |
1044 | 1044 | | |
1045 | 1045 | | |
| 1046 | + | |
| 1047 | + | |
| 1048 | + | |
| 1049 | + | |
| 1050 | + | |
1046 | 1051 | | |
1047 | 1052 | | |
1048 | 1053 | | |
| |||
1090 | 1095 | | |
1091 | 1096 | | |
1092 | 1097 | | |
| 1098 | + | |
| 1099 | + | |
| 1100 | + | |
1093 | 1101 | | |
1094 | 1102 | | |
1095 | 1103 | | |
| |||
0 commit comments