Repository navigation
defaultFireYears() starts in 1986 - #158
Merged
Merged
Conversation
…tation from an earlier year Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## development #158 +/- ##
============================================
Coverage 89.13% 89.13%
============================================
Files 50 50
Lines 4398 4398
============================================
Hits 3920 3920
Misses 478 478 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
eliotmcintire
added a commit
that referenced
this pull request
Oct 16, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014G18Mik3fH4z5M5CyMSUS6
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.
The default fire years now start in 1986, one year after the first vegetation year, because each year's fires are now fitted against vegetation from an earlier year. Fires of 1985 can no longer be paired with any vegetation.
Affects: the default fire years of fireSense_dataPrepFit and fireSense_ELFs (ELF fire counts for merging now exclude 1985).
Technical details
Defect:
defaultFireYears()(R/defaultFireYears.R:15) returned1985L:climateData::latestHistoricalYear(). SCANFI vegetation of year Y already shows year Y's burns, so fireSense_dataPrepFit#73 pairs each fire year with the latest data year strictly before it, and 1985 has none. Fix: it returns1986L:...; roxygen and man/ updated. Other uses (R/fireSenseCloudParameterStatus.R:120,plotELFs()) call the function and need no change; the 1985 in ledger file names anddataYearsexamples is unrelated. test-defaultFireYears.R now expects 1986 (fails on the old code: 2 failures). R CMD check (--no-manual, suggested packages PtProcess, spatstat, spelling not installed so_R_CHECK_FORCE_SUGGESTS_=false, scratch library phase4/lib): 0 errors, 0 warnings, 0 notes; tests 0 failed, 1979 passed, 10 skipped. Base (development): 0 failed, 1994 passed, 2 skipped (devtools::test).🤖 Generated with Claude Code