Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# canClimateData (development version)

- Requires SpaDES.core >= 3.2.1.9070. A rerun reads the years it serves from `inputs(sim)$loadTime`; before SpaDES.core #527 the rows of objects passed to `simInit(objects = )` held seconds (e.g. 85836672000 for 2720), so the rerun asked the record for years it does not have.
- `outputDir` may be a `reproducible::asPath(dir, nParentDirs)`: the event cache keys then hold only the last `nParentDirs + 1` components of the folder, so a cache built on one machine matches on another where the folder has a different prefix, while a different folder (e.g. another hindcast) still gives a different key. A plain path is keyed in full, as before. Nothing in the module changed; the parameter description says how to pass it.
- Rerunning this module on a finished run whose years are not calendar years (NRV), with that run's `climateYearRecord` (from the climateYear module), now prepares the climate years the record holds for the simulation years the rerun serves (the load times of its inputs, `inputs(sim)`, which `alreadyRun` sets to the finished run's save times), not the years in `climateVariables` or `historicalClimateYears`/`projectedClimateYears`. Variables by period, and `calcCumMDC` ones (which need consecutive years), keep their years. `times` are not checked as calendar years then. `climateYearRecord` is a new optional input; in a normal run climateYear writes it after this module's `init`, and `loadOrder` keeps that order.
- `climateData` is now required from its modsForFireSense branch (>= 2.2.3.9011). `checkCalendarYears()` is only there; climateData development reached 2.2.3.9011 without it, so the old floor installed a climateData whose `init` failed with "could not find function".
Expand Down
2 changes: 1 addition & 1 deletion canClimateData.R
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ defineModule(sim, list(
"PredictiveEcology/fireSenseUtils@development (>= 0.0.5.9046)",
"PredictiveEcology/LandR@development (>= 1.1.0.9064)",
"PredictiveEcology/reproducible@development (>= 3.2.1.9060)",
"PredictiveEcology/SpaDES.core@development (>= 2.1.5)",
"PredictiveEcology/SpaDES.core@development (>= 3.2.1.9070)",
"PredictiveEcology/SpaDES.tools@development (>= 2.0.4.9002)"),
parameters = rbind(
defineParameter("bufferDist", "numeric", 20000, NA, NA,
Expand Down
Loading