Skip to content

Commit

Permalink
Code scanning issue #147.
Browse files Browse the repository at this point in the history
  • Loading branch information
djgroen committed Dec 4, 2023
1 parent b7e310a commit 80067d7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions easyvvuq/sampling/mc_sampler.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 80067d7

Please sign in to comment.