Skip to content

Commit 530d455

Browse files
committed
Merge branch 'master' into apple-silicon-error-msg
2 parents d4a0dda + d66fa80 commit 530d455

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

R/run.R

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -253,11 +253,12 @@ CmdStanRun <- R6::R6Class(
253253

254254
time <- list(total = self$procs$total_time(), chains = chain_time)
255255
} else {
256+
chain_ids <- names(self$procs$is_finished())
256257
chain_time <- data.frame(
257-
chain_id = self$procs$proc_ids()[self$procs$is_finished()],
258-
warmup = self$procs$proc_section_time("warmup")[self$procs$is_finished()],
259-
sampling = self$procs$proc_section_time("sampling")[self$procs$is_finished()],
260-
total = self$procs$proc_total_time()[self$procs$is_finished()]
258+
chain_id = as.vector(self$procs$proc_ids()),
259+
warmup = as.vector(self$procs$proc_section_time("warmup")),
260+
sampling = as.vector(self$procs$proc_section_time("sampling")),
261+
total = as.vector(self$procs$proc_total_time()[chain_ids])
261262
)
262263
time <- list(total = self$procs$total_time(), chains = chain_time)
263264
}

0 commit comments

Comments
 (0)