Commit a8b3e4c
Address CI review round 2: reject non-binary masks, fix logit test, document df
CI review findings:
- Reject non-binary numeric masks in subpopulation() ({1,2} etc. coerce
to all-True via astype(bool), silently defining wrong domain)
- Fix test_survey_phase4.py: update "strictly positive" to "non-negative"
to match changed solve_logit() validation message
- Document replicate df limitation in TODO.md (df stays R-1 when invalid
replicates are dropped — marginal impact for typical R > 50)
- Add REGISTRY.md Note entries for replicate <2 valid returns NaN
- Tests: non-binary numeric mask rejection, beta length assertion
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 200745c commit a8b3e4c
4 files changed
Lines changed: 20 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| 55 | + | |
55 | 56 | | |
56 | 57 | | |
57 | 58 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
444 | 444 | | |
445 | 445 | | |
446 | 446 | | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
447 | 456 | | |
448 | 457 | | |
449 | 458 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
202 | 202 | | |
203 | 203 | | |
204 | 204 | | |
205 | | - | |
| 205 | + | |
206 | 206 | | |
207 | 207 | | |
208 | 208 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
759 | 759 | | |
760 | 760 | | |
761 | 761 | | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
762 | 771 | | |
763 | 772 | | |
764 | 773 | | |
| |||
0 commit comments