Skip to content

Ledger-row readers come from fireSenseUtils - #52

Merged
eliotmcintire merged 2 commits into
developmentfrom
ledgerFromFSU
Nov 23, 2026
Merged

eliotmcintire merged 2 commits into
developmentfrom
ledgerFromFSU

Conversation

@eliotmcintire

@eliotmcintire eliotmcintire commented Nov 23, 2026 •

Copy link
Copy Markdown
Collaborator

The code that reads a spread-fit record (which link it used, where climate enters, its centres) lived in the prediction module only. It now lives in the shared package, so the prediction and the new fuel-effect calculation read a record the same way.

Affects: no change to predictions. Errors about a ledger row now start "spread ledger row" instead of "fireSense_spreadPredict: ledger row".

Technical details

Defect: the ledger*() readers (fireSense_spreadPredict.R, the block from ledgerCovMinMax() to ledgerCovCentre()) were only here, so fireSenseUtils::spreadFuelEffect() (fireSenseUtils#260) had to re-implement them.

Fix: the 12 readers move unchanged to fireSenseUtils (R/ledgerRow.R, exported); this module deletes its copies and calls fireSenseUtils::ledger*(). ledgerEscapeDefinition() stays (it is not about the link). reqdPkgs floor is fireSenseUtils >= 0.2.3.9191, a placeholder until #260 merges and is bumped (fireSenseUtils#261 is merged; development is 9190).

Reuses: the moved ledger*() functions (now fireSenseUtils::ledger*()); new: none.

Tests: the existing tests that call the readers now call fireSenseUtils::ledger*(). Module suite (convertToPackage() + test_local(), scratch library): this branch with the #260 branch 120 tests, 0 failed (426 expectations); this branch with fireSenseUtils before #260: 114 of 120 fail (the readers are missing); base development: 120 tests, 0 failed. The behaviour is the same, so the old tests passing unchanged is the check.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Lx3DXhXsFis2pbqBTh2PPh

… is merged and bumped)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Lx3DXhXsFis2pbqBTh2PPh
@eliotmcintire
eliotmcintire merged commit 8d63553 into development Nov 23, 2026
9 checks passed
@eliotmcintire
eliotmcintire deleted the ledgerFromFSU branch November 23, 2026 04:46
eliotmcintire added a commit that referenced this pull request Nov 23, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Lx3DXhXsFis2pbqBTh2PPh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant