Skip to content

Commit

Permalink
manually undo commit
Browse files Browse the repository at this point in the history
  • Loading branch information
jcblemai committed Apr 16, 2024
1 parent 2e7e17d commit 5888d57
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions flepimop/R_packages/inference/R/inference_slot_runner_funcs.R
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@ aggregate_and_calc_loc_likelihoods <- function(
dplyr::filter(
modeled_outcome,
!!rlang::sym(obs_subpop) == location,
date %in% unique(obs$date[obs$subpop == location])
time %in% unique(obs$date[obs$subpop == location])
) %>%
## Reformat into form the algorithm is looking for
inference::getStats(
"date",
"time",
"sim_var",
stat_list = targets_config,
start_date = start_date,
Expand Down
2 changes: 1 addition & 1 deletion flepimop/main_scripts/inference_slot.R
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,7 @@ for(seir_modifiers_scenario in seir_modifiers_scenarios) {
# run
if (config$inference$do_inference){
sim_hosp <- flepicommon::read_file_of_type(gsub(".*[.]","",this_global_files[['hosp_filename']]))(this_global_files[['hosp_filename']]) %>%
dplyr::filter(date >= min(obs$date),date <= max(obs$date))
dplyr::filter(time >= min(obs$date),time <= max(obs$date))
lhs <- unique(sim_hosp[[obs_subpop]])
rhs <- unique(names(data_stats))
all_locations <- rhs[rhs %in% lhs]
Expand Down

0 comments on commit 5888d57

Please sign in to comment.