Skip to content

Commit 28ed55f

Browse files
committed
implemented changes suggested by cgranade
1 parent 2a521f1 commit 28ed55f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/qinfer/domains.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030

3131
from builtins import range
3232
from future.utils import with_metaclass
33+
from functools import reduce
3334

3435
from operator import mul
3536
from scipy.special import binom
@@ -235,7 +236,7 @@ def values(self):
235236
"""
236237
separate_values = [domain.values for domain in self._domains]
237238
return np.concatenate([
238-
join_struct_arrays(map(np.array, value))
239+
join_struct_arrays(list(map(np.array, value)))
239240
for value in product(*separate_values)
240241
])
241242

0 commit comments

Comments
 (0)