Skip to content

Commit

Permalink
update error line numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
shauntruelove committed Nov 14, 2023
1 parent f32d946 commit df12608
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions flepimop/R_packages/inference/R/inference_slot_runner_funcs.R
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -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")
Expand Down
4 changes: 2 additions & 2 deletions flepimop/main_scripts/inference_slot.R
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ for(seir_modifiers_scenario in seir_modifiers_scenarios) {
#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")
Expand Down Expand Up @@ -623,7 +623,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")
Expand Down

0 comments on commit df12608

Please sign in to comment.