From 5e1054f6e84ec96ad368349207004008d2c32000 Mon Sep 17 00:00:00 2001 From: Ricardo Date: Fri, 16 Jul 2021 12:04:31 +0200 Subject: [PATCH] Fix sample_smc chains/cores info --- pymc3/smc/sample_smc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pymc3/smc/sample_smc.py b/pymc3/smc/sample_smc.py index 7b47f79da92..a0259ea9935 100644 --- a/pymc3/smc/sample_smc.py +++ b/pymc3/smc/sample_smc.py @@ -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 ''} "