File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments