Repository navigation
Bring the fire multiplier and NULL-target fix into allen-dev - #4
Merged
Merged
Conversation
…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>
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.
Brings the fire multiplier and the
calcZonalRegimePars()NULL-target fix intoallen-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
partitionBurnRateMultiplier()(new)calcZonalRegimePars()gainsfireMultiplier,fireMultiplierMethod,fireMultiplierWeights,scaleMaxFireSizecalcZonalRegimePars()withtargetBurnRate = NULL/targetMaxFireSize = NULL🤖 Generated with Claude Code