@@ -168,7 +168,7 @@ function mcmcsample(
168
168
start = time ()
169
169
local state
170
170
171
- @withprogresslogger begin
171
+ @maybewithricherlogger begin
172
172
init_progress (progress)
173
173
# Determine threshold values for progress logging (by default, one
174
174
# update per 0.5% of progress, unless this has been passed in
@@ -321,7 +321,7 @@ function mcmcsample(
321
321
start = time ()
322
322
local state
323
323
324
- @withprogresslogger begin
324
+ @maybewithricherlogger begin
325
325
init_progress (progress)
326
326
# Obtain the initial sample and state.
327
327
sample, state = if num_warmup > 0
@@ -464,7 +464,7 @@ function mcmcsample(
464
464
# Set up a chains vector.
465
465
chains = Vector {Any} (undef, nchains)
466
466
467
- @withprogresslogger begin
467
+ @maybewithricherlogger begin
468
468
if progress == :perchain
469
469
# Create a channel for each chain to report back to when it
470
470
# finishes sampling.
@@ -661,7 +661,7 @@ function mcmcsample(
661
661
pool = Distributed. CachingPool (Distributed. workers ())
662
662
663
663
local chains
664
- @withprogresslogger begin
664
+ @maybewithricherlogger begin
665
665
# Set up progress logging.
666
666
if progress == :overall
667
667
# Just a single progress bar for the entire sampling, but instead
0 commit comments