Skip to content

Commit

Permalink
Merge pull request #17 from kjsato/main-test
Browse files Browse the repository at this point in the history
modified some lines to use relative path related lines for test in en…
  • Loading branch information
kjsato authored Mar 25, 2024
2 parents e4e23d0 + 42eb1c8 commit 58bafcc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/ensemble.R
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,16 @@ 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)
print(file.path("../hub-config/tasks.json"))
dates_archive <- unlist(jsonlite::read_json(file.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()]

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_path <- file.path("../hub-config")
print(hub_path)
hub_con <- connect_hub(hub_path)

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

0 comments on commit 58bafcc

Please sign in to comment.