We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e7dc271 commit 0150b75Copy full SHA for 0150b75
pymc3/tests/test_distributions.py
@@ -80,7 +80,7 @@ def product(domains, n_samples=-1):
80
return []
81
all_vals = [zip(names, val) for val in itertools.product(*[d.vals for d in domains])]
82
if n_samples > 0 and len(all_vals) > n_samples:
83
- return nr.choice(all_vals, n_samples, replace=False)
+ return nr.choice(np.atleast_1d(all_vals), n_samples, replace=False)
84
return all_vals
85
86
0 commit comments