Commit 311a7be
Address fifth round of CI review findings on PR #318
- P0: ``_extract_headline`` now detects ``bootstrap_results is not None``
and ``n_bootstrap > 0`` in addition to ``inference_method`` /
``bootstrap_distribution`` / ``variance_method`` / ``df_survey``.
Many staggered / continuous / dCDH result classes copy bootstrap-
derived se/p/conf_int into their top-level fields without advertising
``inference_method``; alpha override must preserve their fitted CI
rather than silently swapping in a normal-approximation interval.
- P1: ``DiagnosticReport._check_sensitivity`` wraps the HonestDiD call
in ``warnings.catch_warnings(record=True)`` and propagates captured
messages onto the returned section dict. ``run_all`` aggregates
per-section warnings into the top-level ``warnings`` list so both DR
and BR surface them. CallawaySantAnna fits with
``base_period='varying'`` are preemptively skipped at the applicability
gate with a methodology-critical reason, since HonestDiD explicitly
warns those bounds are not valid for interpretation. BR renders the
skip as a warning-severity caveat under a new ``sensitivity_skipped``
topic.
- P1: ``_describe_assumption`` now gives
``ChaisemartinDHaultfoeuilleResults`` a source-backed description of
transition-based identification (joiners / leavers / stable-control
transitions, DID_M / DID_l building blocks, non-binary dose matching,
reversible treatment) rather than generic group-time ATT PT text.
- P2: README example now uses
``CallawaySantAnna(base_period='universal')`` so the advertised
one-call sensitivity path actually runs. Both ``cs_fit`` fixtures
updated likewise.
- Regressions:
``TestBootstrapResultsAndNBootstrapDetection`` (four cases incl.
dCDH-shaped stub and the analytic zero-bootstrap guard),
``TestDCDHAssumptionTransitionBased`` (source-faithful language
assertions), ``TestCSVaryingBaseSensitivitySkipped`` (DR schema reason
+ BR caveat surfacing).
150 -> 115 targeted tests passing; black / ruff / mypy clean.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 345f65c commit 311a7be
5 files changed
Lines changed: 340 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
102 | | - | |
| 102 | + | |
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
364 | 364 | | |
365 | 365 | | |
366 | 366 | | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
367 | 385 | | |
368 | 386 | | |
369 | 387 | | |
370 | 388 | | |
371 | 389 | | |
372 | 390 | | |
| 391 | + | |
| 392 | + | |
373 | 393 | | |
374 | 394 | | |
375 | 395 | | |
| |||
663 | 683 | | |
664 | 684 | | |
665 | 685 | | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
666 | 716 | | |
667 | 717 | | |
668 | 718 | | |
| |||
671 | 721 | | |
672 | 722 | | |
673 | 723 | | |
674 | | - | |
675 | 724 | | |
676 | 725 | | |
677 | 726 | | |
| |||
825 | 874 | | |
826 | 875 | | |
827 | 876 | | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
| 884 | + | |
| 885 | + | |
| 886 | + | |
| 887 | + | |
| 888 | + | |
| 889 | + | |
| 890 | + | |
| 891 | + | |
| 892 | + | |
| 893 | + | |
| 894 | + | |
| 895 | + | |
| 896 | + | |
| 897 | + | |
| 898 | + | |
| 899 | + | |
| 900 | + | |
| 901 | + | |
| 902 | + | |
| 903 | + | |
| 904 | + | |
| 905 | + | |
| 906 | + | |
| 907 | + | |
| 908 | + | |
| 909 | + | |
| 910 | + | |
| 911 | + | |
| 912 | + | |
828 | 913 | | |
829 | 914 | | |
830 | 915 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
500 | 500 | | |
501 | 501 | | |
502 | 502 | | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
503 | 522 | | |
504 | 523 | | |
505 | 524 | | |
| |||
625 | 644 | | |
626 | 645 | | |
627 | 646 | | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
628 | 662 | | |
629 | 663 | | |
630 | 664 | | |
| |||
994 | 1028 | | |
995 | 1029 | | |
996 | 1030 | | |
| 1031 | + | |
| 1032 | + | |
| 1033 | + | |
| 1034 | + | |
| 1035 | + | |
| 1036 | + | |
| 1037 | + | |
997 | 1038 | | |
998 | 1039 | | |
999 | 1040 | | |
1000 | 1041 | | |
1001 | 1042 | | |
1002 | | - | |
1003 | | - | |
1004 | | - | |
1005 | | - | |
1006 | | - | |
1007 | | - | |
1008 | | - | |
1009 | | - | |
1010 | | - | |
1011 | | - | |
| 1043 | + | |
| 1044 | + | |
| 1045 | + | |
| 1046 | + | |
| 1047 | + | |
| 1048 | + | |
| 1049 | + | |
| 1050 | + | |
| 1051 | + | |
| 1052 | + | |
| 1053 | + | |
| 1054 | + | |
| 1055 | + | |
| 1056 | + | |
| 1057 | + | |
| 1058 | + | |
| 1059 | + | |
| 1060 | + | |
1012 | 1061 | | |
1013 | 1062 | | |
1014 | 1063 | | |
1015 | 1064 | | |
1016 | 1065 | | |
1017 | 1066 | | |
1018 | 1067 | | |
1019 | | - | |
| 1068 | + | |
| 1069 | + | |
| 1070 | + | |
| 1071 | + | |
| 1072 | + | |
1020 | 1073 | | |
1021 | 1074 | | |
1022 | 1075 | | |
| |||
0 commit comments