Skip to content

Commit

Permalink
update with master
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveBronder committed Sep 25, 2023
1 parent a05470e commit 0913b32
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions R/args.R
Original file line number Diff line number Diff line change
Expand Up @@ -859,9 +859,9 @@ validate_variational_args <- function(self) {
#' @return `TRUE` invisibly unless an error is thrown.
validate_pathfinder_args <- function(self) {

checkmate::assert_integerish(self$max_lbfgs_iter, lower = 1, null.ok = TRUE, len = 1)
if (!is.null(self$max_lbfgs_iter)) {
self$iter <- as.integer(self$max_lbfgs_iter)
checkmate::assert_integerish(self$max_lbfgs_iters, lower = 1, null.ok = TRUE, len = 1)
if (!is.null(self$max_lbfgs_iters)) {
self$iter <- as.integer(self$max_lbfgs_iters)
}
checkmate::assert_integerish(self$num_paths, lower = 1, null.ok = TRUE, len = 1)
if (!is.null(self$num_paths)) {
Expand Down
Binary file modified tests/testthat/testthat-problems.rds
Binary file not shown.

0 comments on commit 0913b32

Please sign in to comment.