Skip to content

Bring the fire multiplier and NULL-target fix into allen-dev - #4

Merged
agent-allen-larocque merged 7 commits into
allen-devfrom
feature/fire-multiplier-release
Dec 2, 2026
Merged

agent-allen-larocque merged 7 commits into
allen-devfrom
feature/fire-multiplier-release

Conversation

@agent-allen-larocque

Copy link
Copy Markdown
Collaborator

Brings the fire multiplier and the calcZonalRegimePars() NULL-target fix into allen-dev, so a release can be tagged from this fork.

Same code as the open upstream PRs PredictiveEcology#18 (fire multiplier) and PredictiveEcology#17 (NULL targets), combined on feature/ws3-fresh-integration (3521c8e). No new code here.

Behaviour changes

Change Default behaviour
partitionBurnRateMultiplier() (new) n/a
calcZonalRegimePars() gains fireMultiplier, fireMultiplierMethod, fireMultiplierWeights, scaleMaxFireSize unchanged
calcZonalRegimePars() with targetBurnRate = NULL / targetMaxFireSize = NULL bug fix: treated as not set, instead of an error / silently dropped columns

🤖 Generated with Claude Code

agent-allen-larocque and others added 7 commits November 5, 2026 13:57
…as not set

The guards `!is.na(x) || is.null(x)` are TRUE for NULL, so with the
argument defaults (NULL):
- targetBurnRate = NULL gave "argument is of length zero";
- targetMaxFireSize = NULL set emfs_ha and xMax to NULL, silently
  dropping them from the output.

NULL is now converted to NA. Results for NA or numeric targets (what the
scfm modules pass) are unchanged; tests compare them with 2.0.9.9005.

Bump version to 2.0.9.9006.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ze drop

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…imePars()

- new partitionBurnRateMultiplier() splits a burn rate multiplier among
  ignition rate, escape probability and mean fire size: weighted
  (default weights 0.3 / 0.4 / 0.3, escape capped at 1 with the excess
  redistributed) or stepwise (calls ratioPartition2() unchanged);
  0 means no fire, negative values are an error
- calcZonalRegimePars() gets fireMultiplier, fireMultiplierMethod,
  fireMultiplierWeights and scaleMaxFireSize; the defaults change
  nothing, and targetBurnRate keeps its behaviour and priority
- document calcZonalRegimePars() arguments
- tests, including a regression test against 2.0.9.9005 outputs
- bump version to 2.0.9.9007

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- describe the default weights as a modelling choice, not a published estimate
- stepwise docs: ignition changes once multiplier > 4 * min(4, 1 / pEscape),
  because pEscape is capped at 1
- calcZonalRegimePars(): when targetBurnRate is below the empirical rate and
  fireMultiplier is set, say that neither is applied (targetBurnRate still
  takes priority); add a test

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The split of a burn-rate change among ignition, escape and size is expected
to differ among regions; an equal split is the neutral default.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…o feature/ws3-fresh-integration (PredictiveEcology#18)

Integration branch for the cccandies/WS3_FRESH project until PredictiveEcology
PRs PredictiveEcology#17 and PredictiveEcology#18 are merged. Conflicts: DESCRIPTION (keep 2.0.9.9012), NEWS.md
(keep both entries), test-calcZonalRegimePars.R (keep both sets of tests).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…rs fireMultiplier) and the NULL-target fix into allen-dev

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@agent-allen-larocque
agent-allen-larocque merged commit 2ba92c4 into allen-dev Dec 2, 2026
@agent-allen-larocque
agent-allen-larocque deleted the feature/fire-multiplier-release branch December 2, 2026 13:23
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.

2 participants