Repository navigation
Read the SpreadFit ledger with readFitLedger(): a run that only reads a fit needs no ledger copy - #124
Merged
Conversation
… with doFit FALSE and no ledger file of its own reads the newest production fits Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…edger read, mustFit and fitPrepNeeded; tests use readFitLedger() 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.
A run that only reads an existing fit no longer needs its own copy of the fit ledger: if its ledger file is missing or empty, it reads the newest production fit.
Affects: runs with
doFitFALSE and a named ledger file that does not exist now read the production fits instead of failing; every other run reads what it read before.Reuses: fireSenseUtils::readFitLedger(), fireSenseUtils::moduleDoFit() (replaces the hand-written alias resolution in fitPrepNeeded()); new: nothing.
Depends-on: PredictiveEcology/fireSenseUtils#273
Technical details
fireSense_dataPrepFit.RInit():readSpreadFitLedger(...)becomesreadFitLedger("spread", ..., doFit = doFit, ...), withdoFit <- fireSenseUtils::moduleDoFit(Par, currentModule(sim))resolved once and also used formustFit()and the own-fit check.mustFit()still stops when the file has rows but not this ELF.fitPrepNeeded()usesmoduleDoFit()for both fits (NA is kept when the simList has no fireSense_ignitionFit parameters).0.2.3.9200, with a TODO to set it to the version #273 merges at.spreadFitFilenameanddoFitstate the rule. NEWS entry added. No version bump.readSpreadFitLedger()is gone in fireSenseUtils#273: the two direct calls intest-ledgerNotInInputObjectsKey.Rnow callreadFitLedger("spread", ...). The Init stand-ins in the tests stand in forreadFitLedger; a new test checks the call isreadFitLedger("spread", ...)with the run'sdoFit.convertToPackage()withbuildDocuments = TRUE+test_local(), scratch library with fireSenseUtils from the #273 branch head 95ff1be, SpaDES.core 3.2.1.9085): branch 705 tests, 0 failed, 0 errors, 1 skipped. Base 702 tests, 0 failed, 1 error: the base test that callsreadSpreadFitLedger(), which that fireSenseUtils no longer has.🤖 Generated with Claude Code