Skip to content

Commit be21d33

Browse files
committed
changed behaviour of ProductDomain.values to always output the entire value set of finite domain factors
1 parent 1937449 commit be21d33

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

src/qinfer/domains.py

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -233,14 +233,11 @@ def values(self):
233233
234234
:rtype: `np.ndarray`
235235
"""
236-
if self.is_finite:
237-
separate_values = [domain.values for domain in self._domains]
238-
return np.concatenate([
239-
join_struct_arrays(map(np.array, value))
240-
for value in product(*separate_values)
241-
])
242-
else:
243-
return self.example_point
236+
separate_values = [domain.values for domain in self._domains]
237+
return np.concatenate([
238+
join_struct_arrays(map(np.array, value))
239+
for value in product(*separate_values)
240+
])
244241

245242
## METHODS ##
246243

0 commit comments

Comments
 (0)