diff --git a/flepimop/R_packages/inference/R/inference_slot_runner_funcs.R b/flepimop/R_packages/inference/R/inference_slot_runner_funcs.R index 153f6ba87..ea15b03bd 100644 --- a/flepimop/R_packages/inference/R/inference_slot_runner_funcs.R +++ b/flepimop/R_packages/inference/R/inference_slot_runner_funcs.R @@ -740,7 +740,7 @@ initialize_mcmc_first_block <- function( tryCatch({ gempyor_inference_runner$one_simulation(sim_id2write = block - 1) }, error = function(e) { - print("GempyorSimulator failed to run (call on l. 748 of inference_slot_runner_funcs.R).") + print("GempyorSimulator failed to run (call on l. 740 of inference_slot_runner_funcs.R).") print("Here is all the debug information I could find:") for(m in reticulate::py_last_error()) cat(m) stop("GempyorSimulator failed to run... stopping") @@ -758,7 +758,7 @@ initialize_mcmc_first_block <- function( tryCatch({ gempyor_inference_runner$one_simulation(sim_id2write = block - 1, load_ID = TRUE, sim_id2load = block - 1) }, error = function(e) { - print("GempyorSimulator failed to run (call on l. 766 of inference_slot_runner_funcs.R).") + print("GempyorSimulator failed to run (call on l. 758 of inference_slot_runner_funcs.R).") print("Here is all the debug information I could find:") for(m in reticulate::py_last_error()) cat(m) stop("GempyorSimulator failed to run... stopping") diff --git a/flepimop/gempyor_pkg/docs/Rinterface.Rmd b/flepimop/gempyor_pkg/docs/Rinterface.Rmd index c7c871fa0..9a6278e26 100644 --- a/flepimop/gempyor_pkg/docs/Rinterface.Rmd +++ b/flepimop/gempyor_pkg/docs/Rinterface.Rmd @@ -68,7 +68,6 @@ Here we specified that the data folder specified in the config lies in the `test stoch_traj_flag=False, rng_seed=None, nslots=1, - initialize=True, out_run_id=None, # if out_run_id should be different from in_run_id, put it here out_prefix=None, # if out_prefix should be different from in_prefix, put it here spatial_path_prefix="", # in case the data folder is on another directory diff --git a/flepimop/main_scripts/inference_slot.R b/flepimop/main_scripts/inference_slot.R index 08673feff..54a05f657 100644 --- a/flepimop/main_scripts/inference_slot.R +++ b/flepimop/main_scripts/inference_slot.R @@ -429,15 +429,13 @@ for(seir_modifiers_scenario in seir_modifiers_scenarios) { seir_modifiers_scenario=seir_modifiers_scenario, outcome_modifiers_scenario=outcome_modifiers_scenario, stoch_traj_flag=opt$stoch_traj_flag, - initialize=TRUE, # Shall we pre-compute now things that are not pertubed by inference run_id=opt$run_id, prefix=reticulate::py_none(), # we let gempyor create setup prefix inference_filepath_suffix=global_intermediate_filepath_suffix, inference_filename_prefix=slotblock_filename_prefix - #index = ) }, error = function(e) { - print("GempyorSimulator failed to run (call on l. 538 of inference_slot.R).") + print("GempyorSimulator failed to run (call on l. 426 of inference_slot.R).") print("Here is all the debug information I could find:") for(m in reticulate::py_last_error()) cat(m) stop("GempyorSimulator failed to run... stopping") @@ -544,7 +542,7 @@ for(seir_modifiers_scenario in seir_modifiers_scenarios) { ## Using the prefixes, create standardized files of each type (e.g., seir) of the form ## {variable}/{prefix}{block-1}.{run_id}.{variable}.{ext} ## N.B.: prefix should end in "{block}." - this_global_files <- inference::create_filename_list(run_id=opt$run_id, prefix = setup_prefix, filepath_suffix=global_intermediate_filepath_suffix,filename_prefix=slotblock_filename_prefix, index=this_index) + this_global_files <- inference::create_filename_list(run_id=opt$run_id, prefix = setup_prefix, filepath_suffix=global_intermediate_filepath_suffix, filename_prefix=slotblock_filename_prefix, index=this_index) this_chimeric_files <- inference::create_filename_list(run_id=opt$run_id, prefix = setup_prefix, filepath_suffix=chimeric_intermediate_filepath_suffix, filename_prefix=slotblock_filename_prefix, index=this_index) ### Do perturbations from accepted parameters to get proposed parameters ---- @@ -623,7 +621,7 @@ for(seir_modifiers_scenario in seir_modifiers_scenarios) { load_ID=TRUE, sim_id2load=this_index) }, error = function(e) { - print("GempyorSimulator failed to run (call on l. 538 of inference_slot.R).") + print("GempyorSimulator failed to run (call on l. 620 of inference_slot.R).") print("Here is all the debug information I could find:") for(m in reticulate::py_last_error()) cat(m) stop("GempyorSimulator failed to run... stopping")