Repository navigation
doFit may differ between the spread and ignition fits - #125
Merged
Merged
Conversation
…gainst fireSense_spreadFit fitPrepNeeded() stopped when any module's doFit differed (paramCheckOtherMods over all modules), so a run could not read the spread fit and refit ignition. Test: test-skipUnusedFitPrep.R. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
eliotmcintire
added a commit
that referenced
this pull request
Dec 4, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A run could not refit only the ignition and escape models while reading the existing spread fit: it stopped at the start because the two fits had different refit settings. Now each model can have its own setting, so such a run needs no copied spread ledger.
Affects: runs that set a different
doFitfor spread and ignition no longer stop; runs with onedoFitare unchanged.Technical details
fitPrepNeeded()(fireSense_dataPrepFit.R:1747) calledparamCheckOtherMods(sim, "doFit", ifSetButDifferent = "error")over every module, sofireSense_ignitionFit'sdoFithad to equal this module's. The prep already followsfireSense_ignitionFit's owndoFit(32bc8a6). The check now usesmoduleToUse = "fireSense_spreadFit", the other spread module, which must still match.Test:
test-skipUnusedFitPrep.R"the spread and ignition fits can have different doFit" (spread FALSE with ignition NA or TRUE; spread TRUE with ignition FALSE; spreadFit's doFit differing from this module's still errors). It errored before the fix. Full suite locally on fireSenseUtils 0.2.3.9202: 180 tests, 0 failed, 1 skipped (climateData not installed).Reuses:
SpaDES.core::paramCheckOtherMods(moduleToUse).🤖 Generated with Claude Code