Commit 572a02b
fix(dml): drop dead
`_fit_one` referenced `g1_hat_full` / `g0_hat_full` behind a
`if 'g1_hat_full' in locals()` guard that always evaluated False, so
the resulting `mu_hat` was unconditionally `None` and never read by
any caller. flake8 (E9/F7/F82 strict subset in CI) caught the unbound
names as `F821 undefined name`, breaking every Linux/macOS lint job.
Removed the dead branch and merged the leftover comment block into a
single explanation of the residuals we actually expose. No behavior
change — `_last_rep_residuals` already returned `{y_resid, d_resid,
pscore}`, which is exactly what `dml_diagnostics` consumes.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>mu_hat line in IRM that referenced undefined names1 parent 8faacd7 commit 572a02b
1 file changed
Lines changed: 5 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
205 | 205 | | |
206 | 206 | | |
207 | 207 | | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
215 | 213 | | |
216 | 214 | | |
217 | 215 | | |
| |||
0 commit comments