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