From aa13ffc6b04b06f16404b88dca47495a8eb0609f Mon Sep 17 00:00:00 2001 From: Jon McCullough Date: Mon, 4 Dec 2023 13:43:36 +0000 Subject: [PATCH] Edit qmc.py to correct legacy deprecation warning --- easyvvuq/sampling/qmc.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/easyvvuq/sampling/qmc.py b/easyvvuq/sampling/qmc.py index 0c5e6eada..e6a88a62e 100644 --- a/easyvvuq/sampling/qmc.py +++ b/easyvvuq/sampling/qmc.py @@ -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 @@ -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()))