Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into 130-crash-multiple-mo…
Browse files Browse the repository at this point in the history
…dels
  • Loading branch information
mattfidler committed Oct 18, 2024
2 parents 62aa16f + cd8554d commit bf5b1fa
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions R/poped.R
Original file line number Diff line number Diff line change
Expand Up @@ -338,15 +338,15 @@ rxUiGet.popedFfFun <- function(x, ...) {
# be in the right order
if (.lu <= .(.poped$maxn)) {
# only check for time reset if it is specified in the model
.popedRxRunSetup(poped.db)
poped.db <- .popedRxRunSetup(poped.db)
.p <- babelmixr2::popedMultipleEndpointParam(p, .u, model_switch,
.(.poped$maxn),
poped.db$babelmixr2$optTime)
.ret <- .popedSolveIdME(.p, .u, .xt, model_switch, .(length(.predDf$cond)),
.id-1, .totn)
} else if (.lu > .(.poped$maxn)) {
.p <- p[-1]
.popedRxRunFullSetupMe(poped.db, .xt, model_switch)
poped.db <- .popedRxRunFullSetupMe(poped.db, .xt, model_switch)
.ret <- .popedSolveIdME2(.p, .u, .xt, model_switch, .(length(.predDf$cond)),
.id-1, .totn)
}
Expand Down Expand Up @@ -425,7 +425,7 @@ attr(rxUiGet.popedFfFun, "desc") <- "PopED parameter model (ff_fun)"
.poped$setup <- 1L
.poped$fullXt <- NULL
}
invisible()
invisible(popedDb)
}
#' Setup a full solve for a multiple-endpoint model
#'
Expand Down Expand Up @@ -495,6 +495,7 @@ attr(rxUiGet.popedFfFun, "desc") <- "PopED parameter model (ff_fun)"
.poped$curNumber <- popedDb$babelmixr2$modelNumber
.poped$setup <- 2L
}
popedDb
}
#' Setup for a full solve with a single endpoint model
#'
Expand Down Expand Up @@ -561,6 +562,7 @@ attr(rxUiGet.popedFfFun, "desc") <- "PopED parameter model (ff_fun)"
.poped$curNumber <- popedDb$babelmixr2$modelNumber
.poped$setup <- 2L
}
popedDb
}

#' This gets the epsi associated with the nlmixr2/rxode2 model specification
Expand Down

0 comments on commit bf5b1fa

Please sign in to comment.