Skip to content

Commit 9465bd2

Browse files
committed
Move nuts_sampler to sample args
1 parent 225a584 commit 9465bd2

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/sampling/test_mcmc_external.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ def test_step_args():
9393
def test_sample_var_names(nuts_sampler):
9494
seed = 1234
9595
kwargs = {
96-
"nuts_sampler": nuts_sampler,
9796
"chains": 1,
9897
"tune": 100,
9998
"draws": 100,
@@ -125,9 +124,9 @@ def test_sample_var_names(nuts_sampler):
125124

126125
with model:
127126
# Sample with and without var_names, but always with the same seed
128-
idata_1 = sample(**kwargs)
127+
idata_1 = sample(nuts_sampler=nuts_sampler, **kwargs)
129128
# Remove the last free RV from the sampling
130-
idata_2 = sample(var_names=free_RVs[:-1], **kwargs)
129+
idata_2 = sample(nuts_sampler=nuts_sampler, var_names=free_RVs[:-1], **kwargs)
131130

132131
assert "mu" in idata_1.posterior
133132
assert "mu" not in idata_2.posterior

0 commit comments

Comments
 (0)