Skip to content

Commit

Permalink
added discreteuniform warning to qmc
Browse files Browse the repository at this point in the history
  • Loading branch information
wedeling committed Dec 5, 2024
1 parent 31b6906 commit 6f5fc21
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions easyvvuq/sampling/qmc.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ def __init__(self, vary, n_mc_samples, count=0):
msg = "'vary' cannot be empty."
raise RuntimeError(msg)

discrete_input = [isinstance(p, cp.DiscreteUniform) for p in vary.values()]
assert (True in discrete_input) == False, \
"QMCSampler cannot handle DiscreteUniform, use MCSampler instead"

self.vary = Vary(vary)
self.n_mc_samples = n_mc_samples

Expand Down

0 comments on commit 6f5fc21

Please sign in to comment.