Skip to content

Commit

Permalink
remove unused initialize in GempyorSimulator call
Browse files Browse the repository at this point in the history
  • Loading branch information
shauntruelove committed Nov 14, 2023
1 parent df12608 commit 04b68f3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion flepimop/gempyor_pkg/docs/Rinterface.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 1 addition & 3 deletions flepimop/main_scripts/inference_slot.R
Original file line number Diff line number Diff line change
Expand Up @@ -429,12 +429,10 @@ 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. 426 of inference_slot.R).")
Expand Down Expand Up @@ -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 ----
Expand Down

0 comments on commit 04b68f3

Please sign in to comment.