Commit e37d445b authored by Gordian Edenhofer's avatar Gordian Edenhofer Committed by Martin Reinecke
Browse files Fix samples property

Fix a bug which was introduced in eded7903 making it impossible to
access the sample property of a KL with mirrored samples as a list can
not be added to a tuple in python.
parent f3dea2e4
......@@ -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)
res = self._samples
if self._mirror_samples:
Supports Markdown
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