From 80067d796003c4a1c3dbbcaedd876cb2c85e9fea Mon Sep 17 00:00:00 2001 From: Derek Groen Date: Mon, 4 Dec 2023 12:46:34 +0000 Subject: [PATCH] Code scanning issue #147. --- easyvvuq/sampling/mc_sampler.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/easyvvuq/sampling/mc_sampler.py b/easyvvuq/sampling/mc_sampler.py index 5627588c..5c6d311a 100644 --- a/easyvvuq/sampling/mc_sampler.py +++ b/easyvvuq/sampling/mc_sampler.py @@ -49,12 +49,11 @@ def __init__(self, vary, n_mc_samples, **kwargs): None. """ - super().__init__(vary=vary, max_num=n_mc_samples, **kwargs) + super().__init__(vary=vary, count=0, max_num=n_mc_samples, **kwargs) # the number of uncertain inputs self.n_params = len(vary) # the number of MC samples, for each of the n_params + 2 input matrices self.n_mc_samples = n_mc_samples - self.count = 0 # joint distribution self.joint = cp.J(*list(vary.values())) # create the Saltelli sampling plan