diff --git a/NEWS.md b/NEWS.md index ded1241..e66ca96 100644 --- a/NEWS.md +++ b/NEWS.md @@ -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". diff --git a/canClimateData.R b/canClimateData.R index 89d2187..b2e8ab3 100644 --- a/canClimateData.R +++ b/canClimateData.R @@ -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,