Skip to content

Commit a9102aa

Browse files
committed
Update and format test module
1 parent c223e78 commit a9102aa

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

causalpy/tests/test_pymc_models.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
from pymc_extras.prior import Prior
2323

2424
import causalpy as cp
25-
2625
from causalpy.data.simulate_data import generate_hlr_data
2726
from causalpy.pymc_models import (
2827
HierarchicalLinearRegression,
@@ -845,7 +844,7 @@ def _prepare_data(
845844
"group_idx": group_idx,
846845
"coords": coords,
847846
},
848-
"sample_kwargs": sample_kwargs,
847+
"sample_kwargs": resolved_sample_kwargs,
849848
"priors": {
850849
"beta_fixed": Prior(
851850
"Normal", mu=0, sigma=10, dims=["treated_units", "coeffs"]
@@ -922,7 +921,7 @@ def setup_class(cls) -> None:
922921
coords=cls.coords,
923922
)
924923
with cls.model:
925-
cls.idata = pm.sample(**cls.sample_kwargs)
924+
cls.idata = pm.sampling.mcmc.sample(**cls.sample_kwargs)
926925

927926
def test_centered_requires_sigma_random_prior(self) -> None:
928927
priors = {key: self.model.priors[key] for key in ["beta_fixed", "sigma_fixed"]}

0 commit comments

Comments
 (0)