Repository navigation
newestLedgerSuffix(): the suffix of the newest production ledger - #274
Open
eliotmcintire wants to merge 1 commit into
Open
eliotmcintire wants to merge 1 commit into
eliotmcintire wants to merge 1 commit into
Conversation
A run that names no ledger can name the fit it uses (file names, output folders). The Drive listing (saved for offline runs) moves to .ledgerListing(), shared with .latestLedgerFits(). Tests: test-newestLedgerSuffix.R. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## development #274 +/- ##
===============================================
- Coverage 94.02% 94.02% -0.01%
===============================================
Files 78 78
Lines 5908 5920 +12
===============================================
+ Hits 5555 5566 +11
- Misses 353 354 +1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
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 names no fit ledger uses the newest production fit. This gives that fit's name, so the run's ledger files and output folders say which fit it used, instead of a bare "latest" that changes meaning when a new production fit is added.
Affects: nothing on its own; FireSenseTesting's global.R will call it when its default ledger suffix is "".
Technical details
New exported
newestLedgerSuffix(model = c("spread", "ignition"), fireYears, cloudFolderID = NULL, destinationPath): lists the folder (default: the model's production folder constant, whatever the ledger-folder options say), keeps the files offireYears, orders them withledgerFileOrder()(suffix date, then modified time) and returns the newest file's suffix. Stops if there is none.The Drive listing with its saved copy for offline runs moves out of
.latestLedgerFits()into.ledgerListing(), used by both, so "newest" and "latest" read the same file list.Tests:
test-newestLedgerSuffix.R(newest by suffix date over modified time, other fire years ignored, ignition names, no file, production folder whatever the options, offline). Full suite locally: 978 tests, 0 failed, 3 skipped.Reuses:
ledgerFileOrder(),spreadFitFilenameFor()/ignitionFitFilenameFor(), the production folder constants, the listing code of.latestLedgerFits().🤖 Generated with Claude Code