Commit 34ed0cd4 authored by Martin Reinecke's avatar Martin Reinecke
Browse files

fix

parent 85d634c3
Pipeline #71232 passed with stages
in 17 minutes and 10 seconds
...@@ -187,7 +187,7 @@ class MetricGaussianKL(Energy): ...@@ -187,7 +187,7 @@ class MetricGaussianKL(Energy):
random.pop_sseq() random.pop_sseq()
_samples = tuple(_samples) _samples = tuple(_samples)
else: else:
if len(_samples) != self._n_samples: if len(_samples) != self._hi-self._lo:
raise ValueError("# of samples mismatch") raise ValueError("# of samples mismatch")
self._samples = _samples self._samples = _samples
self._lin = Linearization.make_partial_var(mean, self._constants) self._lin = Linearization.make_partial_var(mean, self._constants)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment