Skip to content

Commit a0b1c06

Browse files
committed
update naming scheme for hubs
1 parent 986336e commit a0b1c06

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

R/generate_hub_baselines.R

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,9 +207,11 @@ generate_hub_baseline <- function(
207207
)
208208
}
209209

210-
baseline_model_name <- glue::glue(
211-
"{stringr::str_to_title(disease)}Hub-baseline"
210+
hub_name <- dplyr::case_when(
211+
disease == "covid" ~ "CovidHub",
212+
disease == "rsv" ~ "RSVHub"
212213
)
214+
baseline_model_name <- glue::glue("{hub_name}-baseline")
213215
output_dirpath <- fs::path(base_hub_path, "model-output", baseline_model_name)
214216
if (!fs::dir_exists(output_dirpath)) {
215217
fs::dir_create(output_dirpath, recurse = TRUE)

R/generate_hub_ensemble.R

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,10 @@ generate_hub_ensemble <- function(
9999
)
100100
}
101101

102-
hub_name <- glue::glue("{stringr::str_to_title(disease)}Hub")
102+
hub_name <- dplyr::case_when(
103+
disease == "covid" ~ "CovidHub",
104+
disease == "rsv" ~ "RSVHub"
105+
)
103106
ensemble_model_name <- glue::glue("{hub_name}-ensemble")
104107

105108
output_dirpath <- fs::path(base_hub_path, "model-output", ensemble_model_name)

0 commit comments

Comments
 (0)