Skip to content

Commit

Permalink
Merge pull request #16 from kjsato/main-test
Browse files Browse the repository at this point in the history
modified test code part in ensemble.R ahead of the point of an error
  • Loading branch information
kjsato authored Mar 25, 2024
2 parents 85b70a2 + 5545762 commit e4e23d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/ensemble.R
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ library(purrr)
library(jsonlite)

## ----setup_specifics, include=FALSE---------------------------------------------------

print(file.path(local_path, "hub-config/tasks.json"))
dates_archive <- unlist(jsonlite::read_json(file.path(local_path, "hub-config/tasks.json"))$rounds[[1]]$model_tasks[[1]]$task_ids$origin_date$optional)
dates_archive <- dates_archive[as.Date(dates_archive) <= Sys.Date()]
print(file.path(dir_path, "hub-config/tasks.json"))

curr_origin_date <- as.Date(max(dates_archive, na.rm = TRUE))

## ----prep_ens, include=FALSE--------------------------------------------------
Expand Down

0 comments on commit e4e23d0

Please sign in to comment.