Skip to content

Commit d9c2e86

Browse files
committed
Improve comment
1 parent c6f9e78 commit d9c2e86

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/sample.jl

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -465,9 +465,13 @@ function mcmcsample(
465465

466466
@withprogresslogger begin
467467
if progress == :perchain
468-
# This is the 'overall' progress bar. We create a channel for each
469-
# chain to report back to when it finishes sampling.
468+
# Create a channel for each chain to report back to when it
469+
# finishes sampling.
470470
progress_channel = Channel{Bool}(nchunks)
471+
# This is the 'overall' progress bar which tracks the number of
472+
# chains that have completed. Note that this progress bar is backed
473+
# by a channel, but it is not itself a ChannelProgress (because
474+
# ChannelProgress doesn't come with a progress bar).
471475
overall_progress_bar = CreateNewProgressBar(progressname)
472476
init_progress(overall_progress_bar)
473477
# These are the per-chain progress bars. We generate `nchains`

0 commit comments

Comments
 (0)