Commit 245f194
Address PR #401 R2 review (1 P3 maintainability)
R2 verdict was "Looks good". One P3 housekeeping item addressed:
P3 (maintainability): selector-aware messaging on the empty-state
path:
1. `_compute_path_effects` empty-selection warning now branches on
`paths_of_interest is not None`. Under `paths_of_interest`, the
message reads "every user-specified path was either unobserved
... per-path 'zero observed groups' UserWarnings already issued"
so the user gets a clear pointer to the per-path warnings rather
than a generic "no observed treatment path" message that
misdescribes the cause. Under `by_path=k`, the original message
is preserved.
2. `summary()` empty-state header changed from
"Treatment-Path Disaggregation (by_path)" to
"Treatment-Path Disaggregation"; the trailing parenthetical now
says "by_path / paths_of_interest was a no-op on this panel".
Adds regression `test_paths_of_interest_all_unobserved_emits_distinct_warning`
asserting the paths_of_interest-specific warning text fires when
every requested path is unobserved.
Also fixes 7 pre-existing F541 f-string-without-placeholder warnings
in the warning blocks via `ruff --fix`.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 1d8e16b commit 245f194
3 files changed
Lines changed: 62 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5807 | 5807 | | |
5808 | 5808 | | |
5809 | 5809 | | |
5810 | | - | |
5811 | | - | |
5812 | | - | |
5813 | | - | |
5814 | | - | |
5815 | | - | |
5816 | | - | |
5817 | | - | |
5818 | | - | |
5819 | | - | |
| 5810 | + | |
| 5811 | + | |
| 5812 | + | |
| 5813 | + | |
| 5814 | + | |
| 5815 | + | |
| 5816 | + | |
| 5817 | + | |
| 5818 | + | |
| 5819 | + | |
| 5820 | + | |
| 5821 | + | |
| 5822 | + | |
| 5823 | + | |
| 5824 | + | |
| 5825 | + | |
| 5826 | + | |
| 5827 | + | |
| 5828 | + | |
| 5829 | + | |
| 5830 | + | |
| 5831 | + | |
| 5832 | + | |
| 5833 | + | |
| 5834 | + | |
| 5835 | + | |
| 5836 | + | |
| 5837 | + | |
5820 | 5838 | | |
5821 | 5839 | | |
5822 | 5840 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1270 | 1270 | | |
1271 | 1271 | | |
1272 | 1272 | | |
1273 | | - | |
| 1273 | + | |
1274 | 1274 | | |
1275 | 1275 | | |
1276 | | - | |
| 1276 | + | |
| 1277 | + | |
1277 | 1278 | | |
1278 | 1279 | | |
1279 | 1280 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8732 | 8732 | | |
8733 | 8733 | | |
8734 | 8734 | | |
| 8735 | + | |
| 8736 | + | |
| 8737 | + | |
| 8738 | + | |
| 8739 | + | |
| 8740 | + | |
| 8741 | + | |
| 8742 | + | |
| 8743 | + | |
| 8744 | + | |
| 8745 | + | |
| 8746 | + | |
| 8747 | + | |
| 8748 | + | |
| 8749 | + | |
| 8750 | + | |
| 8751 | + | |
| 8752 | + | |
| 8753 | + | |
| 8754 | + | |
| 8755 | + | |
| 8756 | + | |
| 8757 | + | |
| 8758 | + | |
| 8759 | + | |
| 8760 | + | |
| 8761 | + | |
| 8762 | + | |
| 8763 | + | |
| 8764 | + | |
| 8765 | + | |
8735 | 8766 | | |
8736 | 8767 | | |
8737 | 8768 | | |
| |||
0 commit comments