Skip to content

Commit

Permalink
fix iteration_ids for zero length draws_lists
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-buerkner committed Feb 23, 2025
1 parent e96fe22 commit 8d5fb87
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 4 additions & 0 deletions R/draws-index.R
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ iteration_ids.draws_df <- function(x) {

#' @export
iteration_ids.draws_list <- function(x) {
if (!length(x) || !length(x[[1]])) {
# no chains or no variables within chains
return(integer(0))
}
seq_along(x[[1]][[1]])
}

Expand Down
6 changes: 4 additions & 2 deletions man/u_scale.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8d5fb87

Please sign in to comment.