Repository navigation
Predict a spreadClimate = "activation" ledger row as the activation - #51
Merged
Merged
Conversation
ledgerSpreadClimate() reads the row's mode (fireSenseUtils::spreadClimateTxt); a row without it is "ceiling" with climateRef_spread and a power-law link, else "predictor", as before. ledgerLinkArgs() passes spreadClimate = "activation" for such a row only; spreadProbOneELF() then takes activationIntercept out of the covariate coefficients and gives it to fireSenseUtils::spreadLinkInputs(), and stops when the set and the row disagree. ledgerLinkNumber() checks the activation's link with checkLinkParams(activation =). The per-pixel parameters go out through linkParsRas() as with the ceiling, so fireSense_burn is unchanged. Floor fireSenseUtils >= 0.2.3.9183 (PredictiveEcology/fireSenseUtils#255). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Lx3DXhXsFis2pbqBTh2PPh
eliotmcintire
force-pushed
the
feat/climateActivation
branch
from
November 20, 2026 06:01
13c2ab8 to
be6a76a
Compare
ledgerLinkArgs() passes the mode whenever the row records it (Fable review L4): 'predictor' then keeps climate in x even with a climateRef, and 'ceiling' or 'activation' without one stops. An activation ELF blended with an ELF of another mode stops beside the link check (M1); ceiling with predictor blends as before. The activation's lower-asymptote check uses the run's lowerSpreadProb (L3). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Lx3DXhXsFis2pbqBTh2PPh
eliotmcintire
added a commit
that referenced
this pull request
Nov 20, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Lx3DXhXsFis2pbqBTh2PPh
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.
This makes spread prediction read which climate form a fit used and apply it. A fit made with the new "activation" form is predicted with fuel setting each pixel's limit and climate deciding how much of it is reached, the same as during the fit. Older ledger rows predict as before.
Affects: nothing for existing ledger rows; rows written by
fireSense_spreadFitwithspreadClimate = "activation"are predicted with that form.Depends-on: PredictiveEcology/fireSenseUtils#255
Technical details
The gap: an activation row has a power-law link,
climateRef_spreadand p50, which is whatledgerPowerLawPc50()andspreadProbOneELF()(fireSense_spreadPredict.R:712-720,:619-621) read as climate in the ceiling.activationInterceptwould also be taken as a covariate coefficient and stop as one "without a covariate" (:546).The change:
ledgerSpreadClimate(): the row'sfireSenseUtils::spreadClimateTxt. A row without it is "ceiling" when it hasclimateRef_spreadand a power-law link, else "predictor", as before; an unknown value stops.ledgerLinkArgs()addsspreadClimate = "activation"for such a row only, so other rows' calls are unchanged.spreadProbOneELF()then takesactivationInterceptout with the random effects and gives it tofireSenseUtils::spreadLinkInputs(). A set and its row that disagree stop.ledgerLinkNumber()checks the row's link withfireSenseUtils::checkLinkParams(activation =).pcand the climate x go out throughlinkParsRas()andlinearPredictorRas()as with the ceiling, so fireSense_burn (powerLawPars(),linkedSpread()) adds the year draw to x with no change.fireSenseUtils@development (>= 0.2.3.9183).Reuses:
ledgerLinkArgs(),ledgerLinkNumber(),ledgerClimateRef(),ledgerSpreadLink(),spreadProbOneELF()(extended in place),linkParsRas(),linearPredictorRas(),fireSenseUtils::spreadLinkInputs(),checkLinkParams(),spreadClimateOptions; new:ledgerSpreadClimate()(no reader of the new column existed; it holds the fallback rule for older rows).Tests: new
tests/testthat/test-climateActivation.R: p per pixel equals the formula and stays at or below p50;fireSense_SpreadLinearis the climate term andfireSense_SpreadPowerLawholds per-pixelpc; burn's reading of those outputs and the fit's ownspreadLinkInputs()on the same parameters give the predicted p; a row without the column predicts exactly as a "ceiling" row; mismatched rows and a wrong lower asymptote stop. On the base module the new file fails (all 4 tests, 7 failures and errors). Full suite (SpaDES.core::convertToPackage()+testthat::test_local()): branch 109 tests, 0 failed, 0 skipped, 407 expectations; base 105 tests, 0 failed, 388 expectations.Second commit (Fable review):
test-climateCeiling.R(merged with Climate moves the power-law ceiling (spreadClimate = ceiling) #49) tests that blend, and stopping it would change results of the existing modes.ledgerLinkArgs()passes the mode whenever the row records it. "predictor" then keeps climate in x even withclimateRef_spread; "ceiling" or "activation" without one stops. Rows that record nothing are as before.lowerSpreadProb(ledgerLinkArgs(floor =), throughledgerLinkNumber()).Full suite after the second commit, against PredictiveEcology/fireSenseUtils#255 installed at 0.2.3.9183: 112 tests, 0 failed, 0 skipped, 414 expectations (base 105 tests, 0 failed).
🤖 Generated with Claude Code
https://claude.ai/code/session_01Lx3DXhXsFis2pbqBTh2PPh