Skip to content

Commit

Permalink
try to fix issue #1650
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-buerkner committed Apr 30, 2024
1 parent 98df56d commit 7068d77
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions R/backends.R
Original file line number Diff line number Diff line change
Expand Up @@ -799,6 +799,9 @@ read_csv_as_stanfit <- function(files, variables = NULL, sampler_diagnostics = N
diagnostics <- as.data.frame(matrix(nrow = nrow(samples), ncol = 0))
}

# some diagnostics may be missing in the output depending on the algorithm
rstan_diagn_order <- intersect(rstan_diagn_order, names(diagnostics))

# convert to regular data.frame
samples <- as.data.frame(samples)
chain_ids <- samples$.chain
Expand Down

0 comments on commit 7068d77

Please sign in to comment.