File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -454,9 +454,6 @@ function mcmcsample(
454
454
# Start the progress bars (but in reverse order, because
455
455
# ProgressLogging prints from the bottom up, and we want chain 1 to
456
456
# show up at the top)
457
- # TODO : This has an unintended effect that the 'time' field in the
458
- # progress bar shows the total time since the beginning of sampling,
459
- # even if the specific chain doesn't start sampling until later on.
460
457
for (i, uuid) in enumerate (reverse (uuids))
461
458
ProgressLogging. @logprogress name = " Chain $(nchains- i+ 1 ) /$nchains " nothing _id =
462
459
uuid
@@ -536,8 +533,13 @@ function mcmcsample(
536
533
end
537
534
end
538
535
finally
539
- # Stop updating the progress bar.
536
+ # Stop updating the progress bars (either if sampling is done, or if
537
+ # an error occurs).
540
538
progress && put! (channel, false )
539
+ for (i, uuid) in enumerate (reverse (uuids))
540
+ ProgressLogging. @logprogress name = " Chain $(nchains- i+ 1 ) /$nchains " " done" _id =
541
+ uuid
542
+ end
541
543
end
542
544
end
543
545
end
You can’t perform that action at this time.
0 commit comments