Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in inference_slot when the prefix is not "inference_all" #240

Open
saraloo opened this issue Jun 24, 2024 · 0 comments
Open

Error in inference_slot when the prefix is not "inference_all" #240

saraloo opened this issue Jun 24, 2024 · 0 comments
Assignees
Labels
bug Something isn't working inference Concerns the parameter inference framework

Comments

@saraloo
Copy link
Contributor

saraloo commented Jun 24, 2024

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.

Screen Shot 2024-06-24 at 10 12 19 AM

@saraloo saraloo added bug Something isn't working inference Concerns the parameter inference framework labels Jun 24, 2024
@saraloo saraloo self-assigned this Jun 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working inference Concerns the parameter inference framework
Projects
None yet
Development

No branches or pull requests

1 participant