Skip to content

Commit

Permalink
Merge pull request #15 from kjsato/main-test
Browse files Browse the repository at this point in the history
added some print lines fot test in ensemble.R
  • Loading branch information
kjsato authored Mar 25, 2024
2 parents 3f73988 + dcee0c6 commit 85b70a2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/ensemble.R
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,13 @@ library(jsonlite)

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--------------------------------------------------

hub_path <- file.path(local_path, "hub-config")
print(file.path(hub_path))
hub_con <- connect_hub(hub_path)

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

0 comments on commit 85b70a2

Please sign in to comment.