Skip to content

heldOutFold: do not read the SpreadFit ledger when fitting a held-out fold - #53

Merged
eliotmcintire merged 1 commit into
developmentfrom
feat/held-out-fold-skips-ledger
Sep 29, 2026
Merged

eliotmcintire merged 1 commit into
developmentfrom
feat/held-out-fold-skips-ledger

Conversation

@eliotmcintire

Copy link
Copy Markdown
Collaborator

Init() read the SpreadFit ledger (readSpreadFitLedger(), fireSense_dataPrepFit.R:357) even when a held-out fold was being fitted, where the ledger is not relevant. New parameter heldOutFold (same name and meaning as in fireSense_spreadFit; .globals = list(heldOutFold = ...) sets all modules at once): with 1 or 2 the ledger is not read, sim$spreadFitPreRun stays NULL and mod$haveSpreadFit is FALSE, so the fold derives its own species, fuel and climate objects. paramCheckOtherMods() stops if fireSense_spreadFit has a different value. The new tests fail on development (3 of 4) and pass here; the full suite is 70 tests on development and 74 with no failures on this branch. Version 1.2.0.9022, NEWS updated.

🤖 Generated with Claude Code

https://claude.ai/code/session_01CwcjqqK59FmTJscyi7xUqv

Add heldOutFold, the same parameter as in fireSense_spreadFit. With 1 or 2,
Init() leaves sim$spreadFitPreRun NULL instead of calling readSpreadFitLedger().
paramCheckOtherMods() stops if fireSense_spreadFit disagrees. Version 1.2.0.9022.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CwcjqqK59FmTJscyi7xUqv
@eliotmcintire
eliotmcintire merged commit 0b302c6 into development Sep 29, 2026
6 checks passed
@eliotmcintire
eliotmcintire deleted the feat/held-out-fold-skips-ledger branch September 29, 2026 23:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant