Skip to content

Commit

Permalink
fix failing test when adapt_engaged=FALSE
Browse files Browse the repository at this point in the history
  • Loading branch information
venpopov committed Mar 17, 2024
1 parent c6df0af commit 513d09e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions R/args.R
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,9 @@ SampleArgs <- R6::R6Class(
if (is.logical(self$save_metric)) {
self$save_metric <- as.integer(self$save_metric)
}
if (!self$adapt_engaged & !is.null(self$save_metric)) {
self$save_metric <- 0
}
invisible(self)
},
validate = function(num_procs) {
Expand Down

0 comments on commit 513d09e

Please sign in to comment.