Error in inference_slot when the prefix is not "inference_all"
Closed this issue · 0 comments
saraloo commented
In inference_slot.R line 443 when the GempyorInference object is set up in R, it parses the prefix as 'none' - but this does not work. Gempyor will then take this 'none' and write files in name_inference_all rather than name_outcomemodifiers_seirmodifiers, which causes issues later in the code. I'm not quite sure why this hasn't been an issue before - was something updated?
gempyor_inference_runner <- gempyor$GempyorInference(
config_filepath=opt$config,
stoch_traj_flag=opt$stoch_traj_flag,
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,
autowrite_seir = TRUE
)
eg trying to test some of the example configs, inference_slot.R puts initial files in sample_2pop_inference_all
instead of sample_2pop_Ro_all_test_limits
, and then tries to find them in the latter.