You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Return n_valid from replicate variance functions, fix df properly
Stop mutating resolved.n_replicates in place — instead return
(result, n_valid) tuples from compute_replicate_vcov() and
compute_replicate_if_variance(). Callers unpack the tuple and
LinearRegression.fit() uses n_valid-1 for survey_df.
This eliminates the shared-object mutation that the CI reviewer
flagged as P0 (order-dependent bugs on reused resolved designs)
while properly threading the effective df through inference.
Updated all 7 callers across 5 files + 4 test call sites.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
0 commit comments