From 4eb04504814b3d167901a4d4e4c56f9ff6d9fe83 Mon Sep 17 00:00:00 2001
From: faridm69 <faridmohammadi69@gmail.com>
Date: Thu, 9 Jul 2020 10:53:21 +0200
Subject: [PATCH] [BayesInference] fixed a bug in MCMC.

---
 BayesValidRox/BayesInference/BayesInference.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/BayesValidRox/BayesInference/BayesInference.py b/BayesValidRox/BayesInference/BayesInference.py
index 5befce85e..dcf817bd3 100644
--- a/BayesValidRox/BayesInference/BayesInference.py
+++ b/BayesValidRox/BayesInference/BayesInference.py
@@ -681,7 +681,7 @@ class BayesInference:
             nsteps = 1000 if self.NrofSamples is None else self.NrofSamples
             multiprocessing = True if self.MultiProcessMCMC is None else self.MultiProcessMCMC
             MCMC_ = MCMC(self, initsamples=initsamples, nwalkers=2*self.PCEModel.NofPa,
-                         nsteps = nsteps)
+                         nsteps = nsteps, multiprocessing=multiprocessing)
             self.Posterior_df = MCMC_.run_sampler(Data[0], TotalSigma2)
             
         
-- 
GitLab