Commit a6f11d8
Address R16 polish (2 P3-informational, 2 no-action) on PreTrendsPower
R16 verdict was ✅ Looks good (6th overall ✅), with all findings classified
P3-informational. Two of the four findings ("None in this PR" / "TODO rows
are correct") required no action; addressing the two with concrete polish
suggestions.
- P3 helper docstring: `compute_pretrends_power` and `compute_mdv` both
accept `violation_type` but don't accept `violation_weights`, so
`violation_type="custom"` is unusable from either helper today. Added
an explicit Note in the `violation_type` docstring entry of both
convenience functions pointing users to instantiate `PreTrendsPower`
directly for custom weights, and cross-referencing the TODO row that
tracks the helper-extension follow-up.
- P3 METHODOLOGY_REVIEW.md "four power calculations" target: now reads
"at a pinned revision" with cross-reference to the TODO row that
tracks the R-package revision pin. Until that lands, the R-package
surface claims in the paper review remain provisional.
Pyright diagnostics in pretrends.py (matplotlib import, numpy/list type
conflicts, ndarray-to-tuple coercion) are pre-existing in code I did not
touch; my edits are docstring-only.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 9185204 commit a6f11d8
2 files changed
Lines changed: 13 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1057 | 1057 | | |
1058 | 1058 | | |
1059 | 1059 | | |
1060 | | - | |
| 1060 | + | |
1061 | 1061 | | |
1062 | 1062 | | |
1063 | 1063 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1067 | 1067 | | |
1068 | 1068 | | |
1069 | 1069 | | |
1070 | | - | |
| 1070 | + | |
| 1071 | + | |
| 1072 | + | |
| 1073 | + | |
| 1074 | + | |
| 1075 | + | |
1071 | 1076 | | |
1072 | 1077 | | |
1073 | 1078 | | |
| |||
1114 | 1119 | | |
1115 | 1120 | | |
1116 | 1121 | | |
1117 | | - | |
| 1122 | + | |
| 1123 | + | |
| 1124 | + | |
| 1125 | + | |
| 1126 | + | |
| 1127 | + | |
1118 | 1128 | | |
1119 | 1129 | | |
1120 | 1130 | | |
| |||
0 commit comments