Debug calcfitmod#240
Conversation
|
Claude finished @sschildhauer's task in 2m 49s —— View job Code Review: PR #240 — Debug calcfitmod
SummaryThe two-part fix is correct and well-implemented:
The implementation correctly leverages the existing Correctness Analysis
|
|
📖 https://ucd-serg.github.io/serodynamics/preview/pr240 |
Codecov Report✅ All modified and coverable lines are covered by tests.
|
|
@claude, please help me fix this PR to pass all reviews. Please keep all edits within this thread. |
|
Claude finished @sschildhauer's task in 12m 11s —— View job Fixed: regenerated the missing Linux snapshotsRoot cause: The
Fix: Regenerated the 8 deleted Linux snapshots on a matching environment (Linux, R 4.6.0, serocalculator 1.4.0.9013, JAGS 4.3.2 — same as the CI ubuntu runner). They now include the full-dataset fitted/residual rows and the new
Notes
|
The non-darwin (Linux/Windows) snapshots for run_mod were deleted but not regenerated, causing R-CMD-check and test-coverage to fail with "Adding new file snapshot" on every non-macOS runner. Regenerate them so they include the full-dataset fitted/residual values and the new Stratification column. Co-authored-by: Samuel Hisaji Schildhauer <sschildhauer@users.noreply.github.com>
The new strat parameter added in this PR was not documented with an @param tag, causing an undocumented-argument gap in calc_fit_mod.Rd. Co-authored-by: Samuel Hisaji Schildhauer <undefined@users.noreply.github.com>
|
@claude please review |
|
Claude finished @sschildhauer's task in 1m 48s —— View job Code Review: PR #240 — Debug calcfitmod
SummaryThe core change is sound and the intent matches the PR description:
The new Findings🟢 Correctness — looks good
🟡 Suggestions (non-blocking)
🟢 Documentation
🟢 Tests / Snapshots
VerdictApprove-with-nits. The fix is correct, well tested, and CI is green on every platform. Items (1)–(3) and (6) are quality-of-life follow-ups; (5) is whitespace. None block merge. |
…namics into debug_calcfitmod
Merge commit '77dc07e6a01e267a2ad18533a359e630b83dc8e8' #Conflicts: # tests/testthat/_snaps/run_mod.md
|
@claude, please implement all suggestions. Keep all edits within in this thread. |
|
Claude finished @sschildhauer's task in 6m 33s —— View job Review suggestions implemented — pushed as
|
* Document NA-stratification row behavior in @returns and note that Stratification = "None" in the unstratified case. * Guard rename("Stratification" = strat) against a pre-existing Stratification column when strat names a different variable. * Restore allowlist to inst/WORDLIST (the removal was unrelated to this PR). * Reword NEWS entry to describe both fixes (full-dataset fitted/residuals plus always-included Stratification column). * Drop blank line at top of function body and clean trailing whitespace. Co-authored-by: Samuel Hisaji Schildhauer <sschildhauer@users.noreply.github.com>
|
@claude, please review |
|
Claude finished @sschildhauer's task in 1m 35s —— View job Code Review: PR #240 — Debug calcfitmod
SummaryThe two-part fix lands cleanly:
CI is fully green on the latest commit ( The earlier review nits from this thread have been addressed: Correctness — looks good
Findings🟡 Minor doc inconsistency —
|
|
@claude, please make the above recommended changes. |
|
Claude finished @sschildhauer's task in 1m 18s —— View job Implemented review nit — pushed as
|
Match the quoting convention used in R/calc_fit_mod.R:17 so the documentation precisely reflects the R character value. Co-authored-by: Samuel Hisaji Schildhauer <sschildhauer@users.noreply.github.com>
|
@claude, please review |
|
Claude finished @sschildhauer's task in 1m 31s —— View job Code Review: PR #240 — Debug calcfitmod
SummaryCI is fully green on The last review nit was implemented cleanly:
All three doc files ( Correctness — looks good
Documentation — looks good
FindingsNo outstanding blockers. No new findings beyond what was already addressed in earlier iterations of this thread. VerdictApprove. The fix is correct, well-tested, CI is green across all platforms, and every prior review item — including the final
|
|
@Kwan-Jenny, This should be ready for review |
Debugging calc_fit_mod in two ways: