Commit 3ba7f6d
Address PR #371 AI review R3: docstring access-pattern accuracy
P3 fix: `_collect_path_placebo_bootstrap_inputs` docstring described
the analytical-results shape as
`path_placebos[path]["horizons"][-lag_l]["effect"]` but the actual
access is `path_placebos[path][-lag_l]["effect"]` (no `["horizons"]`
wrapper -- `_compute_path_placebos` returns the negative-keyed inner
dict directly, intentionally diverging from `_compute_path_effects`'s
`["horizons"]` nesting). Update the docstring to match the actual
access pattern at the implementation site (`:5818-5824`).
Harmless at runtime; the fix is to prevent the comment from misleading
future maintenance.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent f70c17f commit 3ba7f6d
1 file changed
Lines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5734 | 5734 | | |
5735 | 5735 | | |
5736 | 5736 | | |
5737 | | - | |
5738 | | - | |
5739 | | - | |
| 5737 | + | |
| 5738 | + | |
| 5739 | + | |
| 5740 | + | |
| 5741 | + | |
| 5742 | + | |
5740 | 5743 | | |
5741 | 5744 | | |
5742 | 5745 | | |
| |||
0 commit comments