Skip to content

Commit aeb7c0d

Browse files
committed
Fix test_distributions_random for idata forward sampling
1 parent 56cea87 commit aeb7c0d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pymc/tests/test_distributions_random.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -1583,7 +1583,7 @@ def ref_rand(mu, rowcov, colcov):
15831583
rowcov=np.eye(3),
15841584
colcov=np.eye(3),
15851585
)
1586-
check = pm.sample_prior_predictive(n_fails)
1586+
check = pm.sample_prior_predictive(n_fails, return_inferencedata=False)
15871587

15881588
ref_smp = ref_rand(mu=np.random.random((3, 3)), rowcov=np.eye(3), colcov=np.eye(3))
15891589

@@ -1921,7 +1921,7 @@ def sample_prior(self, distribution, shape, nested_rvs_info, prior_samples):
19211921
nested_rvs_info,
19221922
)
19231923
with model:
1924-
return pm.sample_prior_predictive(prior_samples)
1924+
return pm.sample_prior_predictive(prior_samples, return_inferencedata=False)
19251925

19261926
@pytest.mark.parametrize(
19271927
["prior_samples", "shape", "mu", "alpha"],
@@ -2379,7 +2379,7 @@ def test_car_rng_fn(sparse):
23792379
with pm.Model(rng_seeder=1):
23802380
car = pm.CAR("car", mu, W, alpha, tau, size=size)
23812381
mn = pm.MvNormal("mn", mu, cov, size=size)
2382-
check = pm.sample_prior_predictive(n_fails)
2382+
check = pm.sample_prior_predictive(n_fails, return_inferencedata=False)
23832383

23842384
p, f = delta, n_fails
23852385
while p <= delta and f > 0:

0 commit comments

Comments
 (0)