Skip to content

Commit

Permalink
exit on null for target output
Browse files Browse the repository at this point in the history
  • Loading branch information
DE0CH authored and MLopez-Ibanez committed Dec 21, 2022
1 parent 27102c4 commit 2df58b6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions R/race-wrapper.R
Original file line number Diff line number Diff line change
Expand Up @@ -527,6 +527,9 @@ execute.experiments <- function(experiments, scenario)
scenario$targetRunnerParallel(experiments, exec.target.runner,
scenario = scenario,
target.runner = target.runner)
if (is.null(target.output)) {
irace.error("Stopping because the output of targetRunnerParallel is NULL.")
}
} else if (scenario$batchmode != 0) {
target.output <- cluster.lapply (experiments, scenario = scenario)
} else if (parallel > 1) {
Expand Down

0 comments on commit 2df58b6

Please sign in to comment.