Commit 93e2788f authored by Martin Reinecke's avatar Martin Reinecke
Browse files

Merge branch 'nifty6_fix_kl_samples_prop' into 'NIFTy_6'

metric_gaussian_kl.py: Fix samples property

See merge request !431
parents f3dea2e4 e37d445b
Pipeline #71427 passed with stages
in 17 minutes and 14 seconds
......@@ -246,7 +246,7 @@ class MetricGaussianKL(Energy):
def samples(self):
if self._comm is not None:
res = self._comm.allgather(self._samples)
res = [item for sublist in res for item in sublist]
res = tuple(item for sublist in res for item in sublist)
else:
res = self._samples
if self._mirror_samples:
......
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