Skip to content

Commit

Permalink
Edit qmc.py to correct legacy deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
JonMcCullough committed Dec 4, 2023
1 parent 6d33000 commit aa13ffc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions easyvvuq/sampling/qmc.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"""

import chaospy as cp
from SALib.sample import saltelli
from SALib.sample import sobol
#from SALib.sample import saltelli
from .base import BaseSamplingElement, Vary
import logging

Expand Down Expand Up @@ -80,7 +81,7 @@ def __init__(self, vary, n_mc_samples, count=0):
"bounds": [[0, 1]] * self.n_params
}

nodes = saltelli.sample(problem, n_mc_samples, calc_second_order=False)
nodes = sobol.sample(problem, n_mc_samples, calc_second_order=False,scramble=True)

self._samples = self.distribution.inv(dist_U.fwd(nodes.transpose()))

Expand Down

0 comments on commit aa13ffc

Please sign in to comment.