Skip to content

Commit 4ee4db0

Browse files
committed
submitting climatological as well
1 parent 959e5e7 commit 4ee4db0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

scripts/covid_hosp_prod.R

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# The COVID Hospitalization Production Forecasting Pipeline.
22
source("scripts/targets-common.R")
33

4-
submit_climatological <- FALSE
4+
submit_climatological <- TRUE
55
submission_directory <- Sys.getenv("COVID_SUBMISSION_DIRECTORY", "cache")
66
insufficient_data_geos <- c("as", "mp", "vi", "gu")
77
# date to cut the truth data off at, so we don't have too much of the past
@@ -149,12 +149,12 @@ rlang::list2(
149149
command = {
150150
if (as.Date(forecast_generation_date_int) < Sys.Date()) {
151151
train_data <- nhsn_archive_data %>%
152-
epix_as_of(as.Date(forecast_generation_date_int)) %>%
152+
epix_as_of(min(forecast_date, current_nssp_archive$versions_end)) %>%
153+
add_season_info() %>%
153154
mutate(
154155
geo_value = ifelse(geo_value == "usa", "us", geo_value),
155156
time_value = time_value - 3
156-
) %>%
157-
add_season_info()
157+
)
158158
} else {
159159
train_data <-
160160
nhsn_latest_data %>%

0 commit comments

Comments
 (0)