Skip to content
Snippets Groups Projects
Commit 34ed0cd4 authored by Martin Reinecke's avatar Martin Reinecke
Browse files

fix

parent 85d634c3
Branches
Tags
1 merge request!428Switch to new numpy random generators
Pipeline #71232 passed
......@@ -187,7 +187,7 @@ class MetricGaussianKL(Energy):
random.pop_sseq()
_samples = tuple(_samples)
else:
if len(_samples) != self._n_samples:
if len(_samples) != self._hi-self._lo:
raise ValueError("# of samples mismatch")
self._samples = _samples
self._lin = Linearization.make_partial_var(mean, self._constants)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment