Repository navigation
modsForFireSense: FireSense fixes awaiting review - #24
Open
eliotmcintire wants to merge 22 commits into
Open
eliotmcintire wants to merge 22 commits into
eliotmcintire wants to merge 22 commits into
Conversation
The tile 39 projected archive (CNRM-ESM2-1 ssp370, 2010 decade) lacks 2013-2016, and observed climate now covers 1901-2024, so projections before 2017 are not needed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CwcjqqK59FmTJscyi7xUqv
Projected climate years start in 2017 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Stop early when run times are not calendar years Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014G18Mik3fH4z5M5CyMSUS6
…nto it) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014G18Mik3fH4z5M5CyMSUS6
This was referenced Oct 21, 2026
Brings modsForFireSense up to date with development. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0137mGXDBvKWpgQ9VhfNqfs7
…im); loadOrder before climateYear; climateData@modsForFireSense A run in model years (NRV, 2720...) stopped in init because start(sim) is not a calendar year. With climateYear present, it is the year checked. Declaring the climateYear input reversed the init order (cycle with climateYear); loadOrder restores it. checkCalendarYears() exists only on climateData modsForFireSense. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
sim$climateYear is per-event state (in a replay, the last year's value). The record of the climate year used in each simulation year is climateYearRecord; when supplied (a rerun), its climate years for times are checked against the years this module prepares. In a normal run climateYear writes it after this module's init (loadOrder), so it is not read. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…years inputs(sim) loads at climateVarsForRecord() replaces the years of each climateVariables element with the climateYearRecord's climate years for rerunSimYears() (the load times of inputs(sim) within times; alreadyRun loads the finished run's outputs at their save times). Normals and calcCumMDC (consecutive years) keep theirs. Replayed 6.6.2_NRV_370_1 with a bird-like module, times 2720-3020: load times 2720, 2820, 2920, 3020 -> climate years 1991, 2002, 2013, 2014. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Rerun on a finished NRV run: prepare the climate years it recorded
Conflicts: NEWS.md (mods entries stay under the development version; development's 1.1.1 section below), canClimateData.R (loadOrder kept, httr2 added; rerunSimYears/climateVarsForRecord and writeUpdatedLayerNames both kept), canClimateData.md (rebuilt by CI). helper-module.R (from development): the Init() harness now provides start()/end() and climateData::checkCalendarYears(), which the modsForFireSense Init() calls. Tests (climateData@modsForFireSense): 103, 0 failed, 1 skipped (development's TODO in test-Init-layerNames.R). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014G18Mik3fH4z5M5CyMSUS6
… = FALSE) A path or core count that differs between machines made the same run a cache miss on another machine. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014G18Mik3fH4z5M5CyMSUS6
…er's last components; drop cacheKey = FALSE An outputDir that is a shared hindcast climate folder must still miss for another folder, as a hit writes nothing there. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014G18Mik3fH4z5M5CyMSUS6
outputDir can be keyed on its last folders: asPath(dir, nParentDirs)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014G18Mik3fH4z5M5CyMSUS6
…tion unit, SpaDES.core#527) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Require the SpaDES.core with load times in years
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.
This branch is development plus the fixes FireSense runs need. Each fix is a separate PR into modsForFireSense, so you can take them one at a time or merge this PR. We keep the branch up to date with development.
Fix PRs into modsForFireSense so far:
Fixes already on this branch (earlier PRs, now closed):
Depends-on: PredictiveEcology/climateData#33
🤖 Generated with Claude Code
https://claude.ai/code/session_014G18Mik3fH4z5M5CyMSUS6