Skip to content

Commit

Permalink
Fix sample_smc chains/cores info
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardoV94 committed Jul 23, 2021
1 parent b13da02 commit 5e1054f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pymc3/smc/sample_smc.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,8 @@ def sample_smc(

if chains is None:
chains = max(2, cores)
elif chains == 1:
cores = 1
else:
cores = min(chains, cores)

_log.info(
f"Sampling {chains} chain{'s' if chains > 1 else ''} "
Expand Down

0 comments on commit 5e1054f

Please sign in to comment.