Repository navigation
Read the spread fits with readFitLedger (doFit = FALSE) - #54
Merged
Merged
Conversation
…n run with no ledger of its own reads the newest production fits Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…nseUtils#273) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
eliotmcintire
added a commit
that referenced
this pull request
Dec 3, 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.
When this module only predicts (for example a hindcast) and the fit file it names does not exist yet, it now reads the newest production fits instead of stopping. This lets a prediction run start without a fit file of its own.
Affects: Prediction-only runs whose named spread fit file is missing or empty read the newest production fits; runs with a file that has rows are unchanged.
Depends-on: PredictiveEcology/fireSenseUtils#273
Technical details
Defect:
fireSense_dataPrepPredict.R:1253calledreadSpreadFitLedger(), which reads only the named file, so a prediction run with no ledger of its own had nothing to read.Fix: call
fireSenseUtils::readFitLedger("spread", ..., doFit = FALSE)(this module never fits); other arguments unchanged. ThespreadFitFilenamedescription states the rule. The fireSenseUtils floor inreqdPkgsis(>= 0.2.3.9200), with a TODO to set it to the version the fireSenseUtils merge is bumped to. NEWS added; no version bump.Reuses:
fireSenseUtils::readFitLedger(); new: none.Tests: the existing ledger-read tests now mock
readFitLedgerand checkdoFitis FALSE. The remaining mentions ofreadSpreadFitLedger(reqdPkgs comment, NEWS, a test comment) are replaced, since fireSenseUtils#273 deletes it. Full module suite (convertToPackage()+test_local(), scratch library with the fireSenseUtils feature branch withoutreadSpreadFitLedger()and SpaDES.core/reproducible development): 533 expectations, 0 failed, 0 skipped. Before the first push (fireSenseUtils with the old function still present) the basedevelopmentmodule gave 532, 0 failed; the old tests cannot run against fireSenseUtils withoutreadSpreadFitLedger().🤖 Generated with Claude Code