Skip to content

Commit

Permalink
modified some lines to use relative path related lines for test in en…
Browse files Browse the repository at this point in the history
…semble.R
  • Loading branch information
kjsato committed Mar 25, 2024
1 parent 5545762 commit 42eb1c8
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 42eb1c8

Please sign in to comment.