Repository navigation
readFitLedger(): a run that does not fit reads the existing fit, falling back to production - #273
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Dec 3, 2026
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## development #273 +/- ##
===============================================
+ Coverage 93.98% 94.02% +0.03%
===============================================
Files 78 78
Lines 5869 5908 +39
===============================================
+ Hits 5516 5555 +39
Misses 353 353 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
.fuelTermsBySpecies() set note to "" on a 0-row table, and elfFuelEffects() built a table from a 1-long ELF and 0-long columns. Regression test: a climate-only fit. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… helper, readSpreadFitLedger() removed 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 model fit no longer needs its own copy of the ledger. When it has none, it reads the newest production fit.
Affects: modules that reuse a fit under a new run name can read it without a hand-copied ledger;
readSpreadFitLedger()is removed (usereadFitLedger("spread", ...)).Reuses:
latestSpreadFits(),latestIgnitionFits(),reproducible::CacheGeo(),CacheGeoLedger(),CacheGeoRead(),copyFile(),resolveDoFit(),ignitionFitFilePrefix; new:readFitLedger()(nothing chose between a named file and the production "latest" bydoFit),moduleDoFit()(one resolver for the modules, overresolveDoFit()),.readLedgerFile()(the ledger read.latestLedgerFits()did inline; now shared),spreadFitFilePrefix,spreadFitLedgerProductionFolder,ignitionFitLedgerProductionFolder(each literal was in one or two places; now one, and the option defaults use them).Technical details
readFitLedger(model = c("spread", "ignition"), filename, cloudFolderID, domain, destinationPath, doFit = NA, escapeDefinition = NULL, polygonIDs = NULL, productionFolder = <model's production constant>).latest*Fits()fromcloudFolderIDcloudFolderIDmustFit()to stop on)productionFolder, with a message naming each row's source fileThe fallback is per file, never per ELF. Nothing is written.
domain = NULLreads all rows; with doFit FALSE the file is read once.polygonIDsgoes tolatest*Fits(). Rows from the "latest" path keep thespreadFitFiles/ignitionFitFilesattribute.Fixed after review: the fallback used
spreadFitLedgerFolder(testing = FALSE), which follows the option an experiment sets to its testing folder. It now uses the exported constantsspreadFitLedgerProductionFolder/ignitionFitLedgerProductionFolder, which no option changes (they are also the option defaults).moduleDoFit(params, module, message = FALSE)isresolveDoFit()over one module's parameter list (FALSEifNULL).readSpreadFitLedger()is deleted; its tests moved intotest-readFitLedger.R.elfFeatures()andelfFitDates()read throughreadFitLedger()(same rows and attributes).Tests, full
devtools::test(): branch 973 tests, 0 failed, 0 errors, 3 skipped; development 953 tests, 0 failed.checkDocFiles()andcodoc()clean. Scratch library with SpaDES.core and SpaDES.tools at development.🤖 Generated with Claude Code