Skip to content

spreadFitFilename defaults to "latest" - #43

Merged
eliotmcintire merged 3 commits into
developmentfrom
feat/latest-spread-fit-file
Sep 28, 2026
Merged

eliotmcintire merged 3 commits into
developmentfrom
feat/latest-spread-fit-file

Conversation

@eliotmcintire

@eliotmcintire eliotmcintire commented Sep 24, 2026 •

Copy link
Copy Markdown
Collaborator

With the default "latest", Init takes each polygon's fit from the most recent ledger file that has it (fireSenseUtils::latestSpreadFits()), then CacheGeo() picks the study area's rows as it does from a named file (R/readSpreadFitLedger.R). So "this ELF has a fit", and with it the fit-or-predict decision in fireSense_SpreadFit, means some current-model file has it. CacheGeo() caches its read of a local file with no key that changes with the file, so that read runs with reproducible.useCache FALSE; a test shows a changed ledger was otherwise returned stale. A named file is read as before. Needs fireSenseUtils >= 0.2.3.9043 (PredictiveEcology/fireSenseUtils#85); merge that first. Module tests 142 pass, 0 fail (development: 135, 0 fail).

🤖 Generated with Claude Code

https://claude.ai/code/session_01CwcjqqK59FmTJscyi7xUqv

eliotmcintire and others added 2 commits September 24, 2026 11:13
Each polygon's fit comes from the most recent ledger file that has it
(fireSenseUtils::latestSpreadFits()); CacheGeo() then picks the study area's
rows from the combined ledger, read with caching off because CacheGeo() keys a
local file's read on nothing that changes with it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CwcjqqK59FmTJscyi7xUqv
…ible

reproducible 3.2.1.9042 fixes CacheGeo() at the source: a local targetFile
is keyed on its content and useCache reaches the inner cache. The option
set around the read is no longer needed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CwcjqqK59FmTJscyi7xUqv
@eliotmcintire

Copy link
Copy Markdown
Collaborator Author

Pushed 5b263fd: drops the options(reproducible.useCache = FALSE) workaround in readSpreadFitLedger() and floors reproducible at 3.2.1.9042, which fixes CacheGeo() itself (PredictiveEcology/reproducible#612). Merge that first. Without the floor, 'a changed ledger is read again' fails on reproducible 9039; with it, the full module suite is 142 pass, 0 fail, 1 skip, as before.

Version 1.2.0.9014 (development is 9013); floors are the higher of the two sides
(fireSenseUtils >= 0.2.3.9043, fireregimetools >= 0.1.0.9008). NEWS names the ledger files by
spreadFitFileTag instead of the old _linearFuel suffix.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CwcjqqK59FmTJscyi7xUqv
@eliotmcintire
eliotmcintire merged commit b3cdab9 into development Sep 28, 2026
6 checks passed
@eliotmcintire
eliotmcintire deleted the feat/latest-spread-fit-file branch September 28, 2026 04:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant