Repository navigation
Apply an escape fit's year climate term to the expected escapes - #49
Merged
Merged
Conversation
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Lx3DXhXsFis2pbqBTh2PPh
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Lx3DXhXsFis2pbqBTh2PPh
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Lx3DXhXsFis2pbqBTh2PPh
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Lx3DXhXsFis2pbqBTh2PPh
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Lx3DXhXsFis2pbqBTh2PPh
eliotmcintire
added a commit
that referenced
this pull request
Nov 26, 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.
When an escape fit has a year-level climate term, the predicted escapes in dry years now follow it, the same way ignitions already do. This also applies the S-shaped option stored in a fit.
Affects: nothing for existing fits (they have no escape term). Fits made with
escapeYearClimatein fireSense_ignitionFit give escapes that follow the year's climate.Depends-on: PredictiveEcology/fireSenseUtils#264
Technical details
Defect:
IgnitionPredictRun()(fireSense_ignitionPredict.R) multiplied only the ignition predictions byyearClimateMultiplierOf();predsEscshad no term. Fix: the escape prediction is multiplied byyearClimateMultiplierOf(f$esc, igCovAll[f$allRows]), the same year mean as the ignitions'. A fit without a term gives 1 and does not read the covariates (lazy argument, so the oldif (!is.null(...yearClimate))guard is dropped). A logistic term goes throughfireSenseUtils::yearClimateMultiplier().fireSense_burnneeds no change.Reuses:
yearClimateMultiplierOf()(now for either fit),fireSenseUtils::yearClimateMeans(),yearClimateMultiplier(); new: nothing.Tests (module converted to a package): branch 148 passed, 0 failed; base (development) 139 passed, 0 failed. The new escape tests (loglinear, logistic, saturation both sides) fail on the base. fireSenseUtils floor
>= 0.2.3.9195(the version #264 gets after its merge bump). No version bump.🤖 Generated with Claude Code
https://claude.ai/code/session_01Lx3DXhXsFis2pbqBTh2PPh