Skip to content

Commit

Permalink
fix get_nchains, run-extended
Browse files Browse the repository at this point in the history
  • Loading branch information
santikka committed Jul 12, 2024
1 parent 5815d70 commit cb99763
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: dynamite
Title: Bayesian Modeling and Causal Inference for Multivariate
Longitudinal Data
Version: 1.5.3
Version: 1.5.4
Authors@R: c(
person("Santtu", "Tikka", email = "[email protected]",
role = c("aut", "cre"), comment = c(ORCID = "0000-0003-4039-4342")),
Expand Down
8 changes: 4 additions & 4 deletions R/stan_utilities.R
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,8 @@ get_model_code <- function(x) {
#'
#' @inheritParams get_pars_oi
#' @noRd
get_num_chains <- function(x) {
UseMethod("get_num_chains")
get_nchains <- function(x) {
UseMethod("get_nchains")
}

#' Get the algorithm used in a Stan model fit
Expand Down Expand Up @@ -200,11 +200,11 @@ get_model_code.CmdStanMCMC <- function(x) {
x$code()
}

get_num_chains.stanfit <- function(x) {
get_nchains.stanfit <- function(x) {
x@sim$chains
}

get_num_chains.CmdStanMCMC <- function(x) {
get_nchains.CmdStanMCMC <- function(x) {
x$num_chains()
}

Expand Down

0 comments on commit cb99763

Please sign in to comment.