Skip to content

modsForFireSense: FireSense fixes awaiting review - #24

Open
eliotmcintire wants to merge 22 commits into
developmentfrom
modsForFireSense
Open

eliotmcintire wants to merge 22 commits into
developmentfrom
modsForFireSense

Conversation

@eliotmcintire

@eliotmcintire eliotmcintire commented Oct 21, 2026 •

Copy link
Copy Markdown
Collaborator

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:

  • none yet

Fixes already on this branch (earlier PRs, now closed):

Depends-on: PredictiveEcology/climateData#33

🤖 Generated with Claude Code

https://claude.ai/code/session_014G18Mik3fH4z5M5CyMSUS6

eliotmcintire and others added 6 commits October 9, 2026 10:18
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
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
eliotmcintire and others added 15 commits November 12, 2026 14:34
…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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant