From 85df486df5a351bc052e68d139e4f377ebc477e9 Mon Sep 17 00:00:00 2001 From: saraloo <45245630+saraloo@users.noreply.github.com> Date: Mon, 13 Nov 2023 13:20:46 -0500 Subject: [PATCH] if no resumed_config fix --- preprocessing/seir_recode_omicron.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/preprocessing/seir_recode_omicron.R b/preprocessing/seir_recode_omicron.R index c09a73bd4..7a473331f 100644 --- a/preprocessing/seir_recode_omicron.R +++ b/preprocessing/seir_recode_omicron.R @@ -35,7 +35,7 @@ opt <- optparse::parse_args(optparse::OptionParser(option_list = option_list)) print(paste0("Using config files: ", opt$config, " and ", opt$res_config)) config <- flepicommon::load_config(opt$config) -if (exists(config$initial_conditions$resumed_config)){ +if (!is.null(config$initial_conditions$resumed_config)){ opt$res_config <- config$initial_conditions$resumed_config }